Hello CodeCall Members, Today i will be showing you some really simple newbie codes!
Here comes the first code for shutdown(closes computer)
Code:
-s stands for shutdownCode:Shell ("shutdown -s")
------------------------------------
Now for the logout code
Code:
-l stands for logoutCode:Shell ("shutdown -l")
------------------------------------
Now for the restart code
Code:
-r stands for restartCode:Shell ("shutdown -r")
-------------------------------------------
Now for the make Directory Code
Code:
and for the delete directory codeCode:MkDir("C:/program files/steam")
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:
then for the 2nd button, name it "Forward" and add:Code:WebBrowser1.Navigate(TextBox1.Text)
Code:
then for the 3rd button, name it "Back" and add:Code:WebBrowser1.GoForward()
Code:
now for the fourth button, name it "Stop" and add:Code:WebBrowser1.GoBack()
Code:
and then the last button, name it "Refresh" and add:Code:WebBrowser1.Stop()
Code:
and you are done!! Now kiss your self! please thank me and +rep me if you want. Bye Bye!Code:WebBrowser1.Refresh()
and btw, if you wanna do a rly cool thing, make a button then add:
Code:
Then Debug!Code:Console.Beep()
Bye Bye!!
Very nice, +rep!
Ns Job!
Nice Post......Thanks For The Info
These are some interesting codes, I especially like the web browser one. The codes are so self explanatory. Thanks for this I learned a few things. Also I have a question, If I were to put the shutdown code in visual basic, build it, and then run it, my computer would shutdown correct? if I am wrong some pl0x correct me.
thanks
thanks for the webbrowser codes, didn't know some of them!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks