Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time 3

Status
Not open for further replies.

EasyOnly

Technical User
Oct 11, 2008
55
0
0
US
Hi All,

Is there a way to have a time picker for field just like the date picker.
 
How are ya EasyOnly . . .

Never heard of such an animal. However a combobox is typically used with time from [blue]1:00 to 12:45[/blue], in increments of [blue]15min[/blue]. These are normally found at sites that lookup departure/arrival times around a time entered.

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
hahah...Now that i read it again, I should be looking in Pet store.

I am fine TheAceMan1.

But I need one for hours and one for minutes since some meeting start at fraction of the time.

 
EasyOnly . . .

So use 1 minute intervals

1:00, 1:01, 1:02 ... 12:45. Add and additional combo for am/pm and you've covered the day.

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
There actually is such an animal.
You can choose "additional Active X controls". Choose
Microsoft DateTime Picker (MSComCtl2.DTPicker.2)
Format the to "2" or Time.
It looks like this

It has a single scroll that allows you to select hours, minutes, or AM/pm independantly
 
I think the correct term is it has a single "spinner" not "scroll".
 
You can use the Microsoft Date and Time Picker Control 6.0

Set the Format to 3 (dtpCustom) and set the format to hh:mm tt. Set the "Updown" property to TRUE (or check the check box) That will give you a display like
Code:
03:27 PM
You can highlight hours or minutes and type a value or use the Up-Down control to scroll the values.
 
I see...

I went to reference and did not find control Microsoft Date and Time Picker Control 6.0.

do I need to add it somehow?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top