|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DateTimePicker Minimum and Maximum ValuesI have set the minimum and maximum dates allowed in a datetimepicker. If I
type a date in the datetimepicker that is before the minimum value I have set it reverts back to today's date which is fine, however, if I 'drop down' the date selection and use the arrow keys to go to a date before the minimum value I get the following error: Value of 'datetime' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'. Parameter name: Value How can I counter this error in my code? You could use the LostFocus event to check for a valid date.
On Mon, 29 Mar 2010 06:45:01 -0700, Connull <Conn***@discussions.microsoft.com> wrote: Show quoteHide quote >I have set the minimum and maximum dates allowed in a datetimepicker. If I >type a date in the datetimepicker that is before the minimum value I have set >it reverts back to today's date which is fine, however, if I 'drop down' the >date selection and use the arrow keys to go to a date before the minimum >value I get the following error: >Value of 'datetime' is not valid for 'Value'. 'Value' should be between >'MinDate' and 'MaxDate'. Parameter name: Value >How can I counter this error in my code?
Ocx : how to read MajorVer, MinorVer and RevisionVer ?
needs double value in string format help about initialize Drawing Curved Text Round(0.5) returns 0. RE: Downloading file without knowing the corrent filename External functions auto sizing data grid view Execute an executable program. common ways creating projects. |
|||||||||||||||||||||||