DateTime Picker control, displaying and selecting times

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
 
L

Lars Behrmann

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top