EmersonH.Com

Transforming Knowledge into Power

  • Increase font size
  • Default font size
  • Decrease font size
Home VB.Net 2008 System Pause Execution of App

Pause Execution of App

E-mail Print

Option Explicit
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Command1_Click()
MsgBox "The back color of the form will change 5 seconds after you close this message box."
Sleep 5000
Me.BackColor = vbBlue
End Sub

Last Updated on Monday, 21 December 2009 17:42