Link to home
Start Free TrialLog in
Avatar of JDL129
JDL129

asked on

I would like to use a WebForm in C#

Hi guys!!

I need to pull up a website using C# and don't know where to start.  I know you guys out there can help.

Thanks,
Jerry
Avatar of dj_alik
dj_alik

Avatar of JDL129

ASKER

Hey guys!!! Thanks for the responses.  I am not using asp.net, at least I don't think I am.
I have a windows forms application that I want to open a website.  Sorry for the misunderstanding.  Surely someon knows how to do this with just a couple of lines of code.

Thanks,
Jerry
ASKER CERTIFIED SOLUTION
Avatar of dj_alik
dj_alik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.Application = "iexplore";
proc.StartInfo.Arguments = "www.google.com";
proc.Start();

Open in new window

This is little tricky but you have the code attached. Yhis opens a Webpage inside a winform

http://www.codeproject.com/KB/cs/winformiehost.aspx winformiehost.zip
Avatar of JDL129

ASKER

dj lik!!!
Yep!!!  Right On!!

Thanks to everyone for their responses.

I do get an error message about the mouse.  Is there another using clause I need.
Otherwise works great.

Thanks a million.
Jerry