Here comes the first code for shutdown(closes computer)
Code:
Shell ("shutdown -s")
-s stands for shutdown
------------------------------------
Now for the logout code
Code:
Shell ("shutdown -l")
-l stands for logout
------------------------------------
Now for the restart code
Code:
Shell ("shutdown -r")
-r stands for restart
-------------------------------------------
Now for the make Directory Code
Code:
MkDir("C:/program files/steam")
and for the delete directory code
Code:
rmdir ("C:/program files/steam")
------------------------------------------------and at last here comes the webbrowser codes, you will need a webbrowser(can be found in tool box) and 5 buttons and a textbox(it will be the navigation bar)
place all the 5 buttons on the form, and also the webbrowser. size it so it covers like 95% of the form, the other 5% is for the buttons and the textbox.
Click at button1, and name it "GO", then double click it and add:
Code:
WebBrowser1.Navigate(TextBox1.Text)
then for the 2nd button, name it "Forward" and add:
Code:
WebBrowser1.GoForward()
then for the 3rd button, name it "Back" and add:
Code:
WebBrowser1.GoBack()
now for the fourth button, name it "Stop" and add:
Code:
WebBrowser1.Stop()
and then the last button, name it "Refresh" and add:
Code:
WebBrowser1.Refresh()
and you are done!! Now kiss your self! please thank me and +rep me if you want. Bye Bye!
and btw, if you wanna do a rly cool thing, make a button then add:
Code:
Console.Beep()Then Debug!
Bye Bye!!


Sign In
Create Account


Back to top









