Results 1 to 9 of 9
  1. #1
    Hax0r69's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0

    [Question] How to make a button link to a website?

    I want to make a button link to a website when you click it like if i click the button it takes me to mpgh.net. Im new to VB sorry

  2. #2
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    1
    Code:
    Private Sub Command1_click()
    Shell ("Explorer www.mpgh.net")
    End Sub
    2
    Code:
    Private Sub Command1_Click()
    Call ShellExecute(Me.hwnd, "open", "https://www.mpgh.net", vbNullString, vbNullString, SW_SHOW)
    End Sub
    3
    Code:
    shell="https://mpgh.net/"
    Behold, the power of google. I've also used one of these myself. The last one is different in that it will load the site within your program's window.
    Last edited by Toymaker; 04-11-2009 at 08:20 AM.

  3. The Following User Says Thank You to Toymaker For This Useful Post:

    Hax0r69 (04-11-2009)

  4. #3
    Hax0r69's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Thank You and i did use google but i couldn't find these codes cuz almost everyone on google are retards.

  5. #4
    KnockOut's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    New York Fucking City
    Posts
    881
    Reputation
    10
    Thanks
    210
    lol thats cool you can prank ppl into sites

  6. #5
    Marsicano's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Brazil
    Posts
    371
    Reputation
    16
    Thanks
    67
    My Mood
    Lonely
    add this code to the button:

    Process.Start("www.mpgh.net")

    or

    you can use a LinkLabel and add the web-adress to his properties.

  7. The Following User Says Thank You to Marsicano For This Useful Post:

    Zoom (08-24-2009)

  8. #6
    JRPRO's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    In you butt,of course :)
    Posts
    14
    Reputation
    10
    Thanks
    5
    Uhh,i think you need to add more codes -.-
    Last edited by JRPRO; 05-03-2009 at 12:23 AM.




    The Internet Is Like Walking Billions Of Miles



    And this too.



    R.I.P Michael Jackson.


    [img]https://www.danasof*****m/sig/162799369989.jpg[/img]

  9. #7
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4
    shell("{File Location , with what you want to open , browser location Default location is system folder , i think , or windows folder} https://www.orx.pri.ee/")

    OrX

  10. #8
    kallebou's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    2
    My Mood
    Scared
    Quote Originally Posted by Marsicano View Post
    add this code to the button:

    Process.Start("www.mpgh.net")

    or

    you can use a LinkLabel and add the web-adress to his properties.
    Process.Start("https://www.mpgh.net")

    it is for me

  11. #9
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by Hax0r69 View Post
    I want to make a button link to a website when you click it like if i click the button it takes me to mpgh.net. Im new to VB sorry
    For VB08,
    Process.Start("Website name here")

Similar Threads

  1. [TuT]How to make a button to start Warrock
    By str1k3r21 in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-10-2007, 10:25 AM
  2. how can i make Exit button
    By sukh13 in forum WarRock - International Hacks
    Replies: 9
    Last Post: 10-21-2007, 02:18 AM
  3. How to make the server run
    By wowhaxor in forum Gunz General
    Replies: 3
    Last Post: 05-25-2006, 09:59 PM
  4. How to make a Zombie
    By arunforce in forum Art & Graphic Design
    Replies: 2
    Last Post: 01-27-2006, 08:07 AM
  5. How I make wallhack?
    By RaidenDXX in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-23-2006, 01:28 PM

Tags for this Thread