MonthCalendar::SetDate Method (DateTime)
.NET Framework (current version)
Sets a date as the currently selected date.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- date
-
Type:
System::DateTime
The date to be selected.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException |
This method sets the SelectionStart and the SelectionEnd properties to the specified date. This method is the functional equivalent of setting the selection range to a single day through the SetSelectionRange method or the SelectionRange property.
.NET Framework
Available since 1.1
Available since 1.1
Show: