共用方式為


MonthCalendar Control (Windows Forms)

The Windows Forms MonthCalendar control presents an intuitive graphical interface for users to view and set date information. The control displays a grid containing the numbered days of the month, arranged in columns underneath the days of the week. You can select a different month by clicking the arrow buttons on either side of the month caption. Unlike the similar DateTimePicker control, you can select a range of dates with this control; however, the DateTimePicker control allows you to set times as well as dates.

In This Section

Reference

  • MonthCalendar
    Provides reference information on the class and its members.
  • DateTimePicker Control (Windows Forms)
    Describes a control similar to MonthCalendar, although the DateTimePicker control also allows you to select a time and does not allow you to select a range of dates.