|
You can write a delay method, such as this
#region delay (in seconds)
public void Delay (int delayTime)
{
DateTime now = DateTime.Now;
int s;
do
{
TimeSpan spand = DateTime.Now-now;
s = spand.Seconds;
Application.DoEvents ();
}
while (s <delayTime);
}
#endregion
This will not wait like a crash during the delay |
|