|
-
Oct 2nd, 2012, 03:47 PM
#1
Thread Starter
Junior Member
New Timer problem
I'm tryng to make a timer object but having no luck,
If i add timer1 to form1 and write:
me.text = "yeah"
Timer1.enabled = false
Then after one "tick" it will change the text, but to do the same thing with a timer object i've read that i need to write something like:
Public shared Tim as system.timers.timer
Public shared sub main()
Tim = new timers.timer(1000)
Tim.enabled = True
Addhandler Tim.elapsed, addressof TimTick
End sub
Private shared sub TimTick(sender as object, e as timers.elapsedeventargs)
Form1.text = "yeah"
Tim.enabled = false
End sub
This doesn't seem to work, am i missing something?
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
|