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
JDL129Asked:
Who is Participating?
 
dj_alikCommented:
Using Process.Start to link to the Internet
http://code.logos.com/blog/2008/01/using_processstart_to_link_to.html

 http://frazzleddad.blogspot.com/2007/07/working-with-webbrowser-control-in.html

Working With The WebBrowser Control in WinForms
Right click on your tool box, on the tab where you want the web browser
 control to live, select Add Remove Items, Select Com Components, Check
 Microsoft Web Browser. This will add the browser to your toolbox. Then just
 drop it on your form like any other control.




0
 
dj_alikCommented:
0
 
NavneetSoftware EngineerCommented:
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
JDL129Author Commented:
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
0
 
ExpertHelp79Commented:
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

0
 
ExpertHelp79Commented:
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
0
 
JDL129Author Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.