DateTime Picker control, displaying and selecting times

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I am looking to use the date/time picker control to allow the user to select
a time.

I have done a similar thing in a C++ project by formating the date time
picker to show only the time and then using a spinner control as a buddy
control to allow the user to cycle through the hour/minute/second without the
need for a keyboard,(as my app is being run on a touchscreen).

I'd appreciate any advice on how i can do something similar in C#

Thanks in advance
Macca
 
Hi Macca,

you can set the Format property of the DateTimePicker to Time,
so it will only display the time. After that i would take
the TrackBar control to let the user adjust the time value.

Cheers
Lars Behrmann

_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/
 
Back
Top