I want to control axWebBrower, but I need its hwin handle

  • Thread starter Thread starter MikeFrye
  • Start date Start date
M

MikeFrye

the axWebBrowser.Handle is the handle to the parent window.
i.e. This.handle is the same as this.axWebBrowser1.Handle

Is there code I can do to get the handle?

Thanks in advance...

Mike
 
Mike,

You will have to call the GetOcx method to get an object that represents
the actual active X object. Once you have that, you can probably cast it to
an IOleWindow instance (which you will have to define for COM interop), and
then call the GetWindow method which will return the window handle to you.

Hope this helps.
 

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