I need some help with my visual basic program I would like to to reboot the computer when the user clicks a button but cant get it to work, this is what ive got so far (that dosent work):
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Shell("RUNDLL32.EXE shell32,SHExitWindowsEx 2", AppWinStyle.NormalFocus)
End Sub
RUNDLL32.EXE shell32,SHExitWindowsEx 2 is meant to reboot the computer (someone told me) but it just dosent work so does anyone know how I can do it?
2007-01-10
04:11:17
·
2 answers
·
asked by
sbraidley
3
in
Computers & Internet
➔ Programming & Design