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

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

Jim Rand

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top