Hi.
i have this problem.
i dont know how to explain this but it is like this
DoFirstCommand();
Wait();
DoSecondCommand();
its like wait for a few seconds after DoFirstCommand before processing the second one... sort of pause.
Printable View
Hi.
i have this problem.
i dont know how to explain this but it is like this
DoFirstCommand();
Wait();
DoSecondCommand();
its like wait for a few seconds after DoFirstCommand before processing the second one... sort of pause.
You can call Thread.Sleep if you don't mind the whole thread freezing. If it's your UI thread then that may be an issue. Otherwise you can just start a Timer and call the second method from its Tick event.
You could also consider using a BackgroundWorker, but the timer seems most suitable.