sleep method in .Net
-
there maybe a thread asking how to use Sleep method in .Net. I know how to declare and use Sleep in VB 6.0, but I don't know how to use it in VB.Net I create a project in VB 6.0 and convert it back to VB.Net and copy and paste the converted code into my VB.Net project but .. I still get error.. Do I need any special header file to import to use Sleep()? thanks
-
there maybe a thread asking how to use Sleep method in .Net. I know how to declare and use Sleep in VB 6.0, but I don't know how to use it in VB.Net I create a project in VB 6.0 and convert it back to VB.Net and copy and paste the converted code into my VB.Net project but .. I still get error.. Do I need any special header file to import to use Sleep()? thanks
-
Just use System.Threading.Thread.Sleep().
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi -
The Sleep() API does the exact same thing - in fact, System.Threading.Thread.Sleep() just calls the Sleep() API.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi