Jump to content

Simple Codes*For newbies, Check Here!*

- - - - -

  • Please log in to reply
7 replies to this topic

#1
VBnet

VBnet

    Newbie

  • Members
  • PipPip
  • 18 posts
Hello CodeCall Members, Today i will be showing you some really simple newbie codes!

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!!

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Very nice, +rep!

#3
AlexT2145

AlexT2145

    Newbie

  • Members
  • Pip
  • 4 posts
Ns Job!

#4
wolf78

wolf78

    Newbie

  • Members
  • Pip
  • 7 posts
Nice Post......Thanks For The Info

#5
Sage Mode

Sage Mode

    Newbie

  • Members
  • Pip
  • 4 posts
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.

#6
pyaephyokyaw1992

pyaephyokyaw1992

    Newbie

  • Members
  • Pip
  • 7 posts
thanks

#7
Jarryd

Jarryd

    Learning Programmer

  • Members
  • PipPipPip
  • 63 posts

Sage Mode said:

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.

Yeah that is correct, but if you were to do this:

shell("shutdown -s -t 60")

It would give you 60 seconds before shutdown, and to abort the shutdown

shell("shutdown -a")


#8
willemnz

willemnz

    Newbie

  • Members
  • Pip
  • 4 posts
thanks for the webbrowser codes, didn't know some of them!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users