NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MonthCalendar.SetSelectionRange

Sets the selection for a month calendar control to a given date range. The selection range will not be set if the selection range exceeds the maximum selection count.

[Visual Basic]
Public Sub SetSelectionRange( _
   ByVal date1 As DateTime, _
   ByVal date2 As DateTime _
)
[C#]
public void SetSelectionRange(
   DateTime date1,
   DateTime date2
);
[C++]
public: void SetSelectionRange(
   DateTime date1,
   DateTime date2
);
[JScript]
public function SetSelectionRange(
   date1 : DateTime,
   date2 : DateTime
);

Parameters

date1
The lower limit of the selection range
date2
The upper limit of the selection range

See Also

MonthCalendar Class | MonthCalendar Members | System.WinForms Namespace | SelectionStart | SelectionEnd