getting monthcalendar cell values

BoxMonkey

New member
Joined
Sep 16, 2006
Messages
3
Programming Experience
Beginner
hi all, i'm new to vb 2005 and i was trying to populate a set of labels with the dates from a monthcalender control. basicly i want something like the calendar in outlook. can anyone lead me in the right direction? thanks in advanced.
 
Not sure what you ask, but I think perhaps the MonthCalendar.GetDisplayRange method or maybe properties SelectionRange or BoldedDates? Have a look at the list of MonthCalendar members.
 
calendar.jpg
i'm trying to populate labels with dates within a month.
here is an image of what i am trying to do.
 
I don't think you need the MonthCalendar control at all, unless you need it for some special purpose (which I know nothing of).

The Date data type will provide you with the requested information. The shared Date.DaysInMonth function will tell you how many days there is of given month/year. An instance of a Date set to the first date in given month/year will give you the day of week through the DayOfWeek property.
 
Back
Top