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

Looking for a clock control 2

Status
Not open for further replies.

BCarruth

Programmer
Feb 8, 2001
19
US
Is there an active x control similar to Date Time Picker that simulates a clock?
 
i don't think there is clock control....but i know how you can make one by using a label
if you want yo know how just reply to this message
 
Please that would be a great help to me!!!!!!!!!
Thanks for the help
Bob
 
this is it
first the form's time interval has to 1000
then on the form's timer event pastes this code in

Me!lblClock.Caption = Format(Now, "dddd, mmm d yyyy, hh:mm:ss AMPM")

then create a label called lblClock

then create a command button called cmdClockStart
then on the on click event paste this code in
Me.TimerInterval = 1000

after you can delete the command button



you should have a clock.....
if u don't get it i can email u a sample
 
Thanks that worked great. Perhaps you know if there is a way to create a control similar to the ActiveX Date Time Picker control. I want the user to be able to click the drop down box and be able to select a time. I would like a clock like appearance to it if possible (similar to the calendar look of the date time picker control).

Thanks for your help
Bob
 
i see you have never voted a post helpful!!!!
You should...it motivates people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top