Desktop Functions: Smart Device Functions:
|
Sleep (kernel32)
C# Signature:
[DllImport("kernel32.dll")] VB Signature:
Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Integer) User-Defined Types:None. Notes:This allows you to call 'Sleep(INT)' and force your application to sleep INT milliseconds. Tips & Tricks:Use this often with Application.DoEvents() Sample Code:C#:
[DllImport("kernel32.dll")] // code added by g. sharp @ http://www.paradisim.net public class MainApp { public static void Main() {
Sleep(U2000); // pause for two seconds } } VB :
Sleep 1000 Alternative Managed API:System.Threading.Thread.Sleep Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|