January 11th, 2006, 07:29 AM
C#: Open webpage in browser from windows control
I have seen many articles explaining how to open a webpage via an ASP.NET web control but I need to know how to open a webpage from a Windows Form Control.
Does anyone know what control class or command is used to do this?
January 11th, 2006, 09:45 AM
Most that I've seen, would just launch the system command "iexplore <website>" It won't open the website in the browser of choice, but why would anything use anything other than IE?
January 11th, 2006, 11:27 AM
And how do you do that? I cant see iexplore anywhere.
January 11th, 2006, 11:43 AM
You should be able to do
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.Application = "iexplore";
proc.StartInfo.Arguments = "www.google.com";
<note> untested, i'm running CompactFramework currently which doesn't allow for System.Diagnostics and i'm too lazy to load up full framework currently.
Last edited by MBirchmeier; January 11th, 2006 at 11:46 AM.
January 11th, 2006, 11:53 AM
Apparently there is no such object "Application" under proc.StartInfo
January 11th, 2006, 11:58 AM
Then google it it's been almost a year since i've worked in full framework, ya gotta do your own research sometimes.
Comments on this post
January 13th, 2006, 06:40 AM
I have thats the problem everything else always refers to using the asp.net code for a web form not a windows form.
January 13th, 2006, 10:06 AM
October 23rd, 2007, 06:59 AM
don't u mean