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!

Clock

Status
Not open for further replies.

krnsmartazz

Technical User
Dec 13, 2001
134
0
0
US
Is there any way to make a clock using a text box and make it look nice? Are there any easier ways to make a clock?
 
Is there anyway i can create something to just show the local time on the computer?
 
In your textbox
=Format(Now(),"hh:nn:ss am/pm")

set the forms timer interal to 1000. (milliseconds)

Private Sub Form_Timer()
Me.Text1.Requery
End Sub

You may only want to show minutes. Then
=Format(Now(),"hh:nn am/pm")
timer interval is 60*1000 = 60000
 
How can i make this text box transparent and not let the cursor click inside the next box? The code for the clock works well it just seems i cant get my text to be transparent.
 
You can use a label cotrol instead of textbox.
Code:
Private Sub Form_Timer()
  Me.Label0.Caption = Format(Now(), "hh:nn:ss am/pm")
End Sub

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
1) To make a textbox transparent
backstyle = transparent
2) To keep the cursor out
enabled = false
 
Enabled=No
Locked=Yes

to avoid the font become gray.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top