| 07/02/2011 3:27 am |
 Administrator Junior Member

Regist.: 06/21/2011 Topics: 6 Posts: 6
 OFFLINE | shutdown your desktop computer using vbprogram
Code:
create 1 command button and double click and add this code
Private Sub Command1_Click()
a = MsgBox("Do you want to Shutdown your computer?", vbOKCancel, "Confirmation"
If a = vbOK Then
Shell "shutdown -s -f -t 00"
Else
Unload Me
End If
End Sub
viola.. please post and say thanks.. |
................ http://www.google.com.ph/imgres?imgurl=http://blog.marcd.com/__oneclick_uploads/2008/03/hack.jpg&imgrefurl=http://blog.marcd.com/2008/03/31/if-then-else/life-hacking/&usg=__H4U87nvdCfzT8odBtppvtKN69rw=&h=768&w=1024&sz=181&hl=tl&start=25&zoom=1&tbnid=zzYXuyhl7QIc6M:&tbnh=113&tbnw=150&ei=AwUCTpfED43su
|