Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - [Visual Basic] Timer event | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 112/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 03-25-04 05:48 PM Link | Quote
Well, what I want to do is pretty simple, just don't know how. Already looked on MSDN and google but those weren't much help.

I want to know how to do timer events. If someone can post me the code to display a simple MsgBox 10 seconds after the form is loaded, I'd pretty much know the drill.
Acmlm

Torosu
heh
Level: 51

Posts: 356/1173
EXP: 981994
For next: 31944

Since: 03-15-04
From: Somewhere that isn't outside of Sherbrooke, Québec, Canada

Since last post: 39 days
Last activity: 3 hours
Posted on 03-25-04 06:06 PM Link | Quote
Create a Timer object, give it Interval=10000 and Enabled=True ... then in the Timer's code, set Enabled=False and the timer won't run more than once (at 10 seconds)

Not sure if there's a better way to do it, but this one is pretty simple ...
Tuvai
Permanently banned for account hacking.
Level: 24

Posts: 113/211
EXP: 74894
For next: 3231

Since: 03-15-04

Since last post: 566 days
Last activity: 339 days
Posted on 03-25-04 06:13 PM Link | Quote
Ah yeah, jsut figured it out:

Private Sub Timer1_Timer()
MsgBox "boo!"
End Sub

Another hour wasted on something so simple.
Jesper
Busy, busy, busy.
Level: 69

Posts: 131/2390
EXP: 2856000
For next: 13743

Since: 03-15-04
From: Sweden.

Since last post: 176 days
Last activity: 79 days
Posted on 03-26-04 01:36 PM Link | Quote
It took me like four months to figure that out, way back when I was 8. In the meantime I was using the only way I knew how to 'slow down' something; some processor heavy calculations. Ofcourse it always bugged me how the form exited before it was drawn.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - [Visual Basic] Timer event | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.013 seconds.