Thursday, July 8, 2010

open a new browser window in Windows Forms

private void tsmGoogle_Click(object sender, EventArgs e)
{
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "http://www.google.com/";
proc.Start();
}

No comments: