This may sound a little stupid... I have used VB for a while... But i don't know how too use Timers... I need a timer that counts down 3 seconds, write's som text in a textbox and then start the procedure over again... Please HELP :D
Printable View
This may sound a little stupid... I have used VB for a while... But i don't know how too use Timers... I need a timer that counts down 3 seconds, write's som text in a textbox and then start the procedure over again... Please HELP :D
dim a as long
form_load()
a = 0
end sub
timer1_Interval()
a = a +1
if a >= 8 'or anynumber
text1.text = "What ever you want"
a = 0
'if you want to reset text too
'text1.text = ""
end if
end sub
actually this would make more sense:
VB Code:
Private Sub Timer1_Timer() MsgBox "3 seconds passed, so do something here!" End Sub Private Sub Form_Load() Timer1.Interval = 1000 '1000 = 1 seconds, maximum is 65535 i think End Sub
Maybe
in forms_load event
and in timer1_timer eventCode:Timer1.Interval = 3000
Code:Text1.text = 'put whatver text u want here
Thanks Guys... It REALLY helped :D
Now those damn timer controls makes MUCH more sense ;)