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.

Re: How to embed IE in C#.net windows application? by Jim

Jim
Mon Aug 20 12:03:02 CDT 2007

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

"Andrew" <Andrew@discussions.microsoft.com> wrote in message
news:89DF0AE5-027E-40D8-8C68-8FA376995F0A@microsoft.com...
> 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.



Re: How to embed IE in C#.net windows application? by Andrew

Andrew
Mon Aug 20 12:50:00 CDT 2007

it looks quite straightfoward, thanks...

"Jim Rand" wrote:

> 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
>
> "Andrew" <Andrew@discussions.microsoft.com> wrote in message
> news:89DF0AE5-027E-40D8-8C68-8FA376995F0A@microsoft.com...
> > 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.
>
>
>