LinkLabel Error

Ford-p

Active member
Joined
Mar 1, 2007
Messages
30
Programming Experience
Beginner
Hey,

I'm relatively new to VB and VB.NET.

I'm trying to have a hyperlink in my form. I've inserted a LinkLabel and on its "_LinkClicked" event I have used the following code:
VB.NET:
System.Diagnostics.Process.Start("http://www.google.com")
This works fine in the Visual Studio 2005 Express Edition environment, but when I compile and run on different PCs I get the error "The system cannot find the file specified." :confused:

I have tried using:
VB.NET:
System.Diagnostics.Process.Start("IEXPLORE.EXE", "http://www.google.com")
This works but I would prefer it to open in the users default browser.

I cannot find any infomation on this anywhere on the web or this forum.

Thanks for your time,
Joe

P.S. Sorry if this is in the wrong section.
 
System.Diagnostics.Process.Start("rundll32", "url.dll,FileProtocolHandler http://www.google.com")
 
Back
Top