SetRange Method
Description
This member function sets the minimum and maximum allowable dates for a date picker control.
Syntax
Public Sub SetRange( _
ByVal [MinRange](#) As Date, _
ByVal [MaxRange](#) As Date _
)
Parameters
- MinRange: A pointer to a Date (VB 6) or DateTime (.NET) object containing the date at the lowest end of the range.
- MaxRange: A pointer to a Date (VB 6) or DateTime (.NET) object containing the date at the highest end of the range.
Remarks
Only months that fall within the specified range can be displayed in the DatePicker control. This will limit the month combo box that pops up when the month name is clicked to the specified month/year range.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.