|
-
Oct 7th, 2009, 05:01 AM
#1
Thread Starter
Lively Member
-
Oct 7th, 2009, 05:07 AM
#2
Lively Member
Re: help on timer
Declare any integer variable..
For example
Code:
Dim secs as integer
secs=0
private sub Timer1_Timer()
secs=secs+1
if secs=5 then
something.visible = true
elseif secs=7 then
something.visible = false
endif
end sub
Just define 1000 ms for your timer interval..
-
Oct 7th, 2009, 06:00 AM
#3
Thread Starter
Lively Member
Re: help on timer
i does not work..
have you try this code?
and
where can put the declaretion?
is it inside the timer sub?
Last edited by Joke Sparrow; Oct 7th, 2009 at 06:04 AM.
-
Oct 7th, 2009, 06:02 AM
#4
Lively Member
Re: help on timer
No.. You should not put inside the Timer_ sub..
You can put inside Form_load or any other event..
-
Oct 7th, 2009, 06:21 AM
#5
Thread Starter
Lively Member
Re: help on timer
thanks raizer it works now
i put
secs = 0 inside the form load..
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
|