R
Ryan
My form includes a field of the DateTime type. I want to allow the user to
be able to set both the date and the time. By default the DateTimePicker
shows just the date and calendar, the time is autoset to 12:00 PM. How's
the best way to do this?
I tried creating a custom format which displays both the date and time and
turned on the Up Down option (DateTimePicker.ShowUpDown). This works but is
a bit clunky. The user has to click on each part of the field and then
either use the keyboard up down arrows or mouse-click the Up or Down arrows
on the control. I prefer my forms to be fully completable without the mouse
(though I do like mouse options available for those who want them). Tabbing
abandons the control rather than moving to the next portion of the field and
I don't see any way to control this behavior.
Another option I considered is 2 DateTimePicker controls on the form, both
tied to the same field, one for the Date and one for the Time. The problem
I forsee is that the data from each control could conflict. Just because
the date and time aren't displayed in each control doesn't mean they aren't
there.
Any tips appreciated.. thanks.
Ryan
be able to set both the date and the time. By default the DateTimePicker
shows just the date and calendar, the time is autoset to 12:00 PM. How's
the best way to do this?
I tried creating a custom format which displays both the date and time and
turned on the Up Down option (DateTimePicker.ShowUpDown). This works but is
a bit clunky. The user has to click on each part of the field and then
either use the keyboard up down arrows or mouse-click the Up or Down arrows
on the control. I prefer my forms to be fully completable without the mouse
(though I do like mouse options available for those who want them). Tabbing
abandons the control rather than moving to the next portion of the field and
I don't see any way to control this behavior.
Another option I considered is 2 DateTimePicker controls on the form, both
tied to the same field, one for the Date and one for the Time. The problem
I forsee is that the data from each control could conflict. Just because
the date and time aren't displayed in each control doesn't mean they aren't
there.
Any tips appreciated.. thanks.
Ryan