|
-
Jun 8th, 2002, 04:12 PM
#1
Thread Starter
Frenzied Member
VERY Simple Question !!!
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
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jun 8th, 2002, 04:14 PM
#2
Lively Member
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
-
Jun 8th, 2002, 04:17 PM
#3
The picture isn't missing
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
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jun 8th, 2002, 04:17 PM
#4
Hyperactive Member
Maybe
in forms_load event
Code:
Timer1.Interval = 3000
and in timer1_timer event
Code:
Text1.text = 'put whatver text u want here
Gamezfreak
Visual Basic 6 Enterprise Edition
Borland C++ Builder 6 Enterprise Edition
-
Jun 8th, 2002, 04:30 PM
#5
Thread Starter
Frenzied Member
Thanks Guys
Thanks Guys... It REALLY helped 
Now those damn timer controls makes MUCH more sense
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|