A1VBCode Forums

How can I open Internet Explorer from C#?


http://www.a1vbcode.com/vbforums/Topic25382.aspx

By swastik - 7/14/2008

Hello Sir,

How can I open Internet Explorer from C#?

Can I open a particular web-page, such as yahoo.com from C# by clicking on a button?

Please send me the code urgently........

Please help me as soon as possible............

Thanking you...........

Swastik..........!!!!!!!!!!!!

By vikas - 12/18/2008

This code creates a process and then invokes the web page.







//Create a new process.



System.Diagnostics.Process proc = new System.Diagnostics.Process();



proc.EnableRaisingEvents = false;



//Here you can also specify a html page on local machine



//such as C:\Test\default.html



proc.StartInfo.FileName = "http://www.microsoft.com";



proc.Start();