|
-
May 16th, 2006, 05:54 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Time control
Dear All,
On my form i need to take the user input as time.
Is there any time control that I can use?
Please help and guide.
Thanks
-
May 16th, 2006, 06:40 PM
#2
Re: Time control
You use a DateTimePicker and set the Format property to Time. You would normally set the ShowUpDown property to True as well. Note that the Value property of the DateTimePicker control is a DateTime object and contains a date portion and a time portion regardless of the displayed format. If you want to get just the time portion you get the Value.TimeOfDay property, which returns a TimeSpan object.
-
May 16th, 2006, 10:15 PM
#3
Thread Starter
Addicted Member
Re: Time control
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|