Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
14.3. MonthCalendar Control
Many applications manipulate dates and times. The .NET Framework provides two controls that allow an application to retrieve date and time information—MonthCalendar and DateTimePicker (Section 14.4).
The MonthCalendar control (Fig. 14.8) displays a monthly calendar on the Form. The user can select a date from the currently displayed month or can use the provided links to navigate to another month. When a date is selected, it is highlighted. Multiple dates can be selected by clicking dates on the calendar while holding down the Shift key. The default event for this control is DateChanged, which is generated when a new date is selected. Properties are provided that allow you to modify the appearance of the calendar, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access