Time in textbox

risa
01-13-2003, 11:40 PM
I just want to know if there's a way to display running time (you can see the changes in seconds, minutes) in a textbox? I want to save the date and time and I want it to be really updated.
I've tried date picker, dtpTime format but it does not change. setting it to Now does not work too.
Should I use Timer? Thanks.

Robby
01-13-2003, 11:55 PM
Yes, set the intervals to 1000, and put Text1.text = Now() in the Timer event of the timer.

I would use a Label instead of a text box, and change the look of the label ro resemble a text box.

casinglm
01-13-2003, 11:59 PM
Yes, you can use the timer.

something like this:


Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub

risa
01-14-2003, 12:19 AM
ok thanks. =)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum