William
Wed Feb 16 21:58:00 CST 2005
"rob" <rmdiv2000@yahoo.com> wrote in message
news:1108604231.007090.177310@z14g2000cwz.googlegroups.com...
> How can I launch a webbrowser from my windows forms applications? The
> reason I need that is because I have a DataGridView with links in one
> of the columns. When clicking on it I process the click and then want
> to start a webbrowser loading the site that the link was pointing to.
Use the Process class as this little C# hack does :
using System;
using System.Diagnostics;
class Class1
{
static void Main(string[] args)
{
Process proc;
proc = new Process();
proc.StartInfo.FileName = "
http://msdn.microsoft.com";
proc.StartInfo.Verb = "open";
proc.StartInfo.UseShellExecute = true;
proc.Start();
}
}
Regards,
Will