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.
 
Back
Top