+ Reply to Thread
Results 1 to 8 of 8

Thread: Simple Codes*For newbies, Check Here!*

  1. #1
    VBnet's Avatar
    VBnet is offline Newbie
    Join Date
    May 2009
    Location
    Sweden :D
    Posts
    18
    Rep Power
    11

    Thumbs up Simple Codes*For newbies, Check Here!*

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

    Here comes the first code for shutdown(closes computer)
    Code:
    Code:
    Shell ("shutdown -s")
    -s stands for shutdown
    ------------------------------------
    Now for the logout code
    Code:
    Code:
    Shell ("shutdown -l")
    -l stands for logout
    ------------------------------------
    Now for the restart code
    Code:
    Code:
    Shell ("shutdown -r")
    -r stands for restart
    -------------------------------------------
    Now for the make Directory Code
    Code:
    Code:
    MkDir("C:/program files/steam")
    and for the delete directory code
    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:
    Code:
    WebBrowser1.Navigate(TextBox1.Text)
    then for the 2nd button, name it "Forward" and add:
    Code:
    Code:
    WebBrowser1.GoForward()
    then for the 3rd button, name it "Back" and add:
    Code:
    Code:
    WebBrowser1.GoBack()
    now for the fourth button, name it "Stop" and add:
    Code:
    Code:
    WebBrowser1.Stop()
    and then the last button, name it "Refresh" and add:
    Code:
    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:
    Code:
    Console.Beep()
    Then Debug!

    Bye Bye!!

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: Simple Codes*For newbies, Check Here!*

    Very nice, +rep!

  4. #3
    AlexT2145's Avatar
    AlexT2145 is offline Newbie
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    0

    Re: Simple Codes*For newbies, Check Here!*

    Ns Job!

  5. #4
    wolf78 is offline Newbie
    Join Date
    Dec 2009
    Posts
    7
    Rep Power
    0

    Re: Simple Codes*For newbies, Check Here!*

    Nice Post......Thanks For The Info

  6. #5
    Sage Mode is offline Newbie
    Join Date
    Mar 2010
    Posts
    4
    Rep Power
    0

    Re: Simple Codes*For newbies, Check Here!*

    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.

  7. #6
    Join Date
    Sep 2010
    Location
    Yangon, Myanmar
    Posts
    7
    Rep Power
    0

    Re: Simple Codes*For newbies, Check Here!*

    thanks

  8. #7
    Jarryd's Avatar
    Jarryd is offline Learning Programmer
    Join Date
    Sep 2010
    Location
    Queensland, Australia
    Posts
    63
    Rep Power
    6

    Re: Simple Codes*For newbies, Check Here!*

    Quote Originally Posted by Sage Mode View Post
    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:

    Code:
    shell("shutdown -s -t 60")
    It would give you 60 seconds before shutdown, and to abort the shutdown

    Code:
    shell("shutdown -a")

  9. #8
    willemnz is offline Newbie
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Re: Simple Codes*For newbies, Check Here!*

    thanks for the webbrowser codes, didn't know some of them!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ASP.NET using C# for newbies
    By nikiakbar in forum ASP, ASP.NET and Coldfusion
    Replies: 3
    Last Post: 10-08-2011, 07:33 PM
  2. JUnit testing for newbies
    By misao in forum Java Help
    Replies: 0
    Last Post: 05-20-2011, 02:06 AM
  3. How to check if a check box has changed?
    By Peckerfish in forum C# Programming
    Replies: 2
    Last Post: 05-24-2009, 02:22 PM
  4. codes please
    By hasintha in forum Introductions
    Replies: 2
    Last Post: 08-08-2006, 09:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts