PDA

Click to See Complete Forum and Search --> : Link Label


whidbey
Jul 25th, 2003, 09:41 PM
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:)

Kasracer
Jul 25th, 2003, 10:09 PM
I'm not exactly sure how it is for C# but for VB it would be

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

Pirate
Jul 26th, 2003, 06:25 PM
System.Diagnostics.Process.Start(this.linkLabel1.Text);

whidbey
Jul 26th, 2003, 06:50 PM
yeah thats the one im looking for :D thanks a lot :)