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?'
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?'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.