Link to home
Start Free TrialLog in
Avatar of u3520384
u3520384

asked on

Ctrl+Alt+Del Simultiously

Dear Expert;
  I have my problem to ask you
In VB, if I want to click Button and want it shut down
automatically, How do I do ?

  Please answer me
ASKER CERTIFIED SOLUTION
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Obviously you'd put your selected shutdown method in the click event of a control after making the .bas module to declare the api

e.g

Private Sub Command1_Click()

 Call ExitWindowsEx(EWX_REBOOT, 0)

End Sub
Avatar of u3520384
u3520384

ASKER

Dear Deighton
  Why method you explain can not use with Windows NT..?

  I want to use buth Win 95 and NT

 pls Answer