How to embed IE in C#.net windows application?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, friends,

We have a Windows application programmed using c#.net 2005. Now our users
need to access web pags of one or two dedicated IP addresses only.

We are thinking to embed an IE component in our application and control it
in our application. As a resutl, it will look like one windows application
and our users won't notice that he/she is actually viewing a web page.

Can we do this way? If yes, how? Any reference paper, sample sourse code,
and etc.?

Thanks a lot for your input.
 
This really peaked my curiosity. Talk about simple.

Create a form with a text box and a button on the top. In the remainder of
the form, place a web browser control.

Here is the code for the button click event:

private void btnGo_Click(object sender, EventArgs e)
{
webBrowser.Url = new Uri(txtUrl.Text);
}

Instant web browser.

Jim
 
it looks quite straightfoward, thanks...

Jim Rand said:
This really peaked my curiosity. Talk about simple.

Create a form with a text box and a button on the top. In the remainder of
the form, place a web browser control.

Here is the code for the button click event:

private void btnGo_Click(object sender, EventArgs e)
{
webBrowser.Url = new Uri(txtUrl.Text);
}

Instant web browser.

Jim
 
Back
Top