What's new

system pausing?

D

DaCyborg

Newbie
Messages
15
Reaction score
0
Points
35
Sin$
7
Hi, I was wondering if there was a way to make c# stop for x amount of time before doing something? like when you press a button it waits like 3 seconds before doing it's event.

Thanks in advance.
 
GoldBl4d3

GoldBl4d3

VIP
VIP
Retired
Programmer Mythical Veteran Legendary Veteran
Messages
3,785
Reaction score
1,452
Points
600
Sin$
0
add a timerControl to the form, select it at the bottom and go into the properties window... set the intervals to 3000 (3 seconds)...

Now once you have done that, double click the timerControl at the bottom(in the designer tab). it should go into the coding area. put your code in that area that you want it to activate on 3 seconds.

If you dont understand then here is a source I made; open it up in C# and see how I did it:

you can remove any green text that starts with: // or //-------

here: 3_Second_Wait_time.rar - FileFront.com

EDIT: DL DOSNT WORK; SO IT'S FIXED.
 
GoldBl4d3

GoldBl4d3

VIP
VIP
Retired
Programmer Mythical Veteran Legendary Veteran
Messages
3,785
Reaction score
1,452
Points
600
Sin$
0
no problem, if it helped you than click the "Thanks" button^_^
 
Top Bottom
Login
Register