How do I make a 'Label' a link?

Posts 1–14 of 14 · Page 1 of 1
How do I make a 'Label' a link?
How do I make a label/button a link? I know something to make it a link, but it automaticly opens the link in IE... And IE sucks my left nut. (Vista sucks my right)

Can anyone please tell me how to make a link that opens it in your standard browser?
It's better to use a Linklabel for this but the code is
Code:
    Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start("http://www.MPGH.net/")
    End Sub
This should open links in your default browser.
Alright, I'll try it in a minute. =D Thx.
If the linklabel is pressed when FireFox/IE isnt open, your program will crash
Use
Code:
Try
Process.Start("http://google.com")
Catch Ex As Exception
Process.Start("http://google.com")
End Try
Nope, the code I posted works just fine with any browser.
Quote Originally Posted by poneboy00 View Post
Nope, the code I posted works just fine with any browser.
I use firefox, and when I use Process.Start("http://google.com") when Firefox isnt open, the program will crash.
I'll try both in a minute...
I just tested it, and this should open in w/e your default browser is for mpgh.net:
Code:
        System.Diagnostics.Process.Start("http://www.mpgh.net/")
Again, can someone tell me how to make a toolbar addon for firefox?
Alright, I'm back and I'm gonna try it in a minute.
haha-XD......
yo why you post this choob shit ???
Quote Originally Posted by Houston View Post
yo why you post this choob shit ???
Because I am a Choob in VB...
i am a professional coder in visual basic
Right?? W/e, It worked. Thx. =D
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us