hi,
I want to shut down my system by making a program on clicking on a command button. Please explain it briefly.
thanx
Printable View
hi,
I want to shut down my system by making a program on clicking on a command button. Please explain it briefly.
thanx
Use the ExitWindowsEx API function.
VB Code:
Private Declare Function ExitWindowsEx Lib "user32" _ (ByVal uFlags As Long, ByVal dwReserved As Long) As Long Private Sub Command1_Click() ExitWindowsEx(1 Or 4, 0) End Sub