accessing webbrowser form the clas

  • Thread starter Thread starter ddd
  • Start date Start date
D

ddd

How can I access a webbrowser control that is embeded on a form from a
class? Also is it possible to create a webbrowser object on the form from a
classs?

thanks

tony
 
ddd,

There are actualy two webbrowser parts.
axinterop.shdocvw and interop.shdocvw

The first needs a form, the second can be used from everywhere, it is the
actual interop to IE and does not show a form in your application however
you can open an IE instance with it..

I hope this helps?

Cor
 
Cor,

Thanks for the information. I believe I always use the first one. How would
I use the second one? Do I have to add any references to the project?

Thanks for your help

tony
 
ddd

I never used it, however I thought, that it was when you have set a
reference too that dll

Friend withevents MyIE As SHDocVw.InternetExplorer

Be aware that although the documentation is the same as the axwebbrowser a
lot of events don't do that like the axwebbrowser.

I hope that goes,


Cor
 

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

Back
Top