Use the Thread.Sleep method.
[quoted text, click to view] "Marty" <xmarty99@hotmail.com> wrote in message
news:FSg3e.107325$KI2.52988@clgrps12...
> Hi,
>
> Is there a "light" way on CPU usage to delay a process in the code
> execution. For example, if I want a function to wait 5 seconds before
> continue executing without using a timer.
>
> Is there a better way than using this:
> While (MyCondition is true)
> System.Windows.Forms.Application.DoEvents()
> End While
>
> Thanks,
> Marty