Call Internet explorer within an application

  • Thread starter Thread starter Ad Bec
  • Start date Start date
A

Ad Bec

Hi,

I have noticed that some programs like for example RealOne
player can call the Internet explorer within its Gui and
the user is able to browse the web from within their
application. The gui has to be only examplar nothing
scary, just so that I can leter develop it to match my
needs, the Interent explorer call within an application
being the first and the most important task.
I was wondering if someone could point me to a script that
can do this. I might also have some additional questions
on how on programing this thing since itmight be my first
c#application and I warn you that I am still a big time
noob for this.

Thanks!!!
 
Ad Bec said:
Hi,

I have noticed that some programs like for example RealOne
player can call the Internet explorer within its Gui and
the user is able to browse the web from within their
application. The gui has to be only examplar nothing
scary, just so that I can leter develop it to match my
needs, the Interent explorer call within an application
being the first and the most important task.
I was wondering if someone could point me to a script that
can do this. I might also have some additional questions
on how on programing this thing since itmight be my first
c#application and I warn you that I am still a big time
noob for this.
If I understand you correctly:
Basically, you import the webbrowser activex control. In VS.NET, click
add/remove controls on the toolbox, in com components check Microsoft Web
Browser and hit ok. You will now be able to use the AxWebBrowser control on
your forms like any other winforms control.
 
Daniel be my Guru.

I played a bit in VS .net. I see what you mean. I even managed to do it but
i dont know how to make the browser open a location on the web. Also, I dont
know how to make it resizable so that when i maximize the application window
the browser maximizes itself too. I am still a begginer in this see. Can
you please send me the code that i could run in my VS for an ActiveX window
that calls a web browser within and the web browser imediately opens a
location on the server for example http://localhost/ThisLocation/

I think that if I manage to make this very first step and play with it I'll
become an Win app programer addict :)


Thanks!!
 
Daniel be my Guru.

I played a bit in VS .net. I see what you mean. I even managed to do it but
i dont know how to make the browser open a location on the web. Also, I dont
know how to make it resizable so that when i maximize the application window
the browser maximizes itself too. I am still a begginer in this see. Can
you please send me the code that i could run in my VS for an ActiveX window
that calls a web browser within and the web browser imediately opens a
location on the server for example http://localhost/ThisLocation/

I think that if I manage to make this very first step and play with it I'll
become an Win app programer addict :)


Thanks!!
 
Ad Bec said:
Daniel be my Guru.

I played a bit in VS .net. I see what you mean. I even managed to do it but
i dont know how to make the browser open a location on the web. Also, I dont
know how to make it resizable so that when i maximize the application window
the browser maximizes itself too. I am still a begginer in this see. Can
you please send me the code that i could run in my VS for an ActiveX window
that calls a web browser within and the web browser imediately opens a
location on the server for example http://localhost/ThisLocation/

I think that if I manage to make this very first step and play with it I'll
become an Win app programer addict :)
hrmm, well, lets see, I'm in ah urry so I'm just gonna throw you some
details
on the AxWebBrowser object you created, there is a member method called
navigate, that will allow you to browse to a host. Look it up on MSDN for a
complete example, but it should be something like
object a = new object();
navigate(url, ref a, ref a, ref a);

to make it resize, set the Dock property in the designer to Dock.Fill.
 
Back
Top