• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

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
0
JDL129
Asked:
JDL129
  • 2
  • 2
  • 2
  • +1
1 Solution
 
dj_alikCommented:
0
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now