المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Function waiting



C# Programming
10-01-2009, 08:51 PM
Hello, in my windows form app, i have a function that acts as a loop. This function calls other functions and runs through the code.

Example:

Loop()
{
one();
two();
three();
four();
and so on
}

How can i create a 1 second wait time in between each function within Loop()?
There will be many function calls within this Loop() so setting a timer_tick to call a specific function wont work for the rest.
It cannot be Thread.sleep as this is a single thread app.

Thanks!