DateTimePicker UpDown default to change seconds
-
I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true. However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?
Programmer Glenn Earl Graham Austin, TX
-
I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true. However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?
Programmer Glenn Earl Graham Austin, TX
Hello Glenn, There is no way to programmatically change the currently selected field in a Microsoft DateTimePicker. There is no notion of default field either. The first time the user goes on this dtp, the minutes field is selected. If he leaves the field after selecting the seconds field, when coming back to the dtp, the seconds will be selected and the updown field will act on this field. Best regards, Nicolas Cadilhac @ VisualHint Smart FieldPackEditor.Net / DateTimePicker Smart PropertyGrid.Net Microsoft PropertyGrid Resource List Free PropertyGrid for MFC