R
Richard Lewis Haggard
Is it possible to determine which field within a DateTimePicker control's
data collection area is active? If so, how?
I have a client who wants to have the DateTimePicker control accept a date
in DD/MM/YY order. The problem is, this can lead to data loss or extra work
for the user.
Consider this scenario:
The user wants to enter March 31.
The control is initialized to 01/01/07.
The active field is the day field.
The user enters '31'.
The user right cursors to the month field.
The user cursor up arrows.
The month changes to 02.
The date field changes to 28.
The user cursor up arrows again to 03.
Result:
The control now display the 28th of March. The user must left cursor back to
the day of month field and reassert the desired day of month.
Given that this must be a problem that has been inflicted upon our European
neighbors for several years, one would think that there must be some work
around for the problem but I've not heard of any such remedy. My initial
thought is to detect the largest date value entered by the user then restore
that value when the user changes to a month that supports a day of that
value. Any other ideas?
data collection area is active? If so, how?
I have a client who wants to have the DateTimePicker control accept a date
in DD/MM/YY order. The problem is, this can lead to data loss or extra work
for the user.
Consider this scenario:
The user wants to enter March 31.
The control is initialized to 01/01/07.
The active field is the day field.
The user enters '31'.
The user right cursors to the month field.
The user cursor up arrows.
The month changes to 02.
The date field changes to 28.
The user cursor up arrows again to 03.
Result:
The control now display the 28th of March. The user must left cursor back to
the day of month field and reassert the desired day of month.
Given that this must be a problem that has been inflicted upon our European
neighbors for several years, one would think that there must be some work
around for the problem but I've not heard of any such remedy. My initial
thought is to detect the largest date value entered by the user then restore
that value when the user changes to a month that supports a day of that
value. Any other ideas?