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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time

Status
Not open for further replies.

gust1480

Programmer
Mar 19, 2002
148
PH
Hi! can somebody pls tell me how i can immitate the way we can change the system time in window. The text box with vertical scroll beside it and you can scroll the hr, min and sec by selecting it. can that be done in vb? how?
 
Look up VB help on the [blue]Time[/blue] statement and it will tell you the following, and give an example.

Time Statement

Sets the system time.

Syntax

Time = time

The required time argument is any numeric expression, string expression, or any combination, that can represent a time.

Remarks

If time is a string, Time attempts to convert it to a time using the time separators you specified for your system. If it can't be converted to a valid time, an error occurs
 
Look at the DateTimePicker control, setting it's Format property to dtpTime

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
If you want to simulate the individual controls, you would use an updown selector for the hours, minutes, & seconds.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
To all that responded to my query, THANKS!
johnwm, where can i find the datetime picker control?
chip h, i'm afraid i still don't know how i can use the updown selector. Do you know a site that will teach me how to use it? Thanks again guys!
 
I guess you haven't had time to read faq222-2244 yet (referred in my previous post). Amongst many other useful items it gives guidance on basic research that you should do before posting!

Use VBHelp|Index and type in DateTimePicker control. As with most controls you will find the source of the control listed. For the DTP control it's in MSCOMCT2.OCX so just go to Project|Components and add Microsoft WindowS Common controls-2

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

for steam enthusiasts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top