The method of pause program and note in VB2008

Posted by Admin L in .NET Programming on 17-07-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb2008-pause-program-note
To reprint this article, please indicate the source, thank you.
_____________________________________

The method is so easy, just use Sleep(n) function of Thread class (the unit of n is millisecond, 1 minute = 1 * 60 * 1000).
But there is a note, please know:
System.Threading.Thread.Sleep(n)
and
System.Threading.Thread.CurrentThread.Sleep(n)
are equivalent, don’t be confused by “CurrentThread” words.
So, no need to call it through CurrentThread, the latter is not recommended by Visual Studio.

【赞赏 / Reward】

微信         支付宝         PayPal

Post a comment