Bohunt.Org Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Bohunt.Org Forum Community


3 posters

    How To Open Your Default Browser With A Click of A Button

    Sawybean125
    Sawybean125
    HeuTeck
    HeuTeck


    Male
    Number of posts : 34
    Registration date : 2009-01-20

    How To Open Your Default Browser With A Click of A Button Empty How To Open Your Default Browser With A Click of A Button

    Post  Sawybean125 Wed Feb 04, 2009 2:08 pm

    This Tutorial Will Be Really Quck And Easy.

    First Open Vb.
    Next Create Your Button, In My New Project I Am Making (Not The Web-Browser) I Am Using A LinkLabel.
    Then Double Click On You Button, And Type This Code In:
    Code:
    System.Diagnostics.Process.Start("http://www.website.com")
    You Can Change "Website" And ".Com" For What Ever Web-Site You Want It To Load.

    Thanks Sawybean125,
    HeuTeck.
    dominic
    dominic
    Poster
    Poster


    Male
    Number of posts : 14
    Location : UK
    Registration date : 2009-01-22

    How To Open Your Default Browser With A Click of A Button Empty Re: How To Open Your Default Browser With A Click of A Button

    Post  dominic Thu Feb 05, 2009 9:50 am

    Thanks this will help
    Sawybean125
    Sawybean125
    HeuTeck
    HeuTeck


    Male
    Number of posts : 34
    Registration date : 2009-01-20

    How To Open Your Default Browser With A Click of A Button Empty Thanks

    Post  Sawybean125 Fri Feb 06, 2009 11:58 am

    Thanks Also You Can Do This.

    Shut Down Your Computer:
    Code:
    System.Diagnostics.Process.Start("shutdown", "-s -t 00")

    Restart The Computer:
    Code:
    System.Diagnostics.Process.Start("shutdown", "-r -t 00")

    Log Off The Computer:
    Code:
    System.Diagnostics.Process.Start("shutdown", "-l -t 00")

    Im Not Sure If They If They Work Because I Have Not Tested Them. Mainly Because I Dont Want To Have To Restart My Computer And Log On.
    More Things You Can Do:

    Start Notepad:
    Code:
    Shell "C:\windows\notepad.exe"
    Start Other Things By Surching Were They Are On Your Computer And Change The Bit In The Speach Marks For Were It Is, E.G
    Code:
    Shell "C:\Program Files\Steam\Steam.exe -applaunch 440"
    The Way I Got TF2 Is By Right Clicking On The Desktop Short Cut And Press Ctrl + c, Strait Away Because Its Already Highlited And Then Paste It Into Vb Inbetween Then Speach Marks.

    Thanks,
    HeuTeck
    Sawybean125


    Last edited by Sawybean125 on Sat Feb 07, 2009 4:47 am; edited 2 times in total
    JosephS
    JosephS
    Administrator
    Administrator


    Male
    Number of posts : 42
    Age : 29
    Location : UK
    Registration date : 2009-01-19

    How To Open Your Default Browser With A Click of A Button Empty Re: How To Open Your Default Browser With A Click of A Button

    Post  JosephS Sat Feb 07, 2009 4:13 am

    The log-off, shut down and restart codes should work.

    but, it will be time to move posts soon. Once the new site is released i will leave this forum some time so that everyone can move thier posts.
    Sawybean125
    Sawybean125
    HeuTeck
    HeuTeck


    Male
    Number of posts : 34
    Registration date : 2009-01-20

    How To Open Your Default Browser With A Click of A Button Empty Thanks

    Post  Sawybean125 Sat Feb 07, 2009 4:42 am

    Ok Thanks,
    Sawybean125

    Sponsored content


    How To Open Your Default Browser With A Click of A Button Empty Re: How To Open Your Default Browser With A Click of A Button

    Post  Sponsored content


      Current date/time is Tue Nov 05, 2024 5:28 pm