I did some search on msdn but i didn't find anything relating to link label, could someone explain how it works:
I have a link label, how do i make it opens a website (say, www.microsoft.com) after the user clicks on it?
Thanks for help:)
Printable View
I did some search on msdn but i didn't find anything relating to link label, could someone explain how it works:
I have a link label, how do i make it opens a website (say, www.microsoft.com) after the user clicks on it?
Thanks for help:)
I'm not exactly sure how it is for C# but for VB it would be
VB Code:
process.start("www.microsoft.com")
That's the shorthand, it's in system.Diagnostics.Process.Start()
Since it's a .NET function, I'm sure you can incorporate it into C#.
This way, it executes the URL, therefore opening it in the user's default web browser and not specifying Internet Explorer, or mozilla or netscape, ect...
Hope that helps
Code:System.Diagnostics.Process.Start(this.linkLabel1.Text);
yeah thats the one im looking for :D thanks a lot :)