Web Browser Control Exception

anilgupte

Member
Joined
Mar 7, 2007
Messages
11
Programming Experience
1-3
I ahve embedded a WebBrowser in a Windows App and I am getting this error:

WebBrowser Unable to get the window handle for the 'AxWebBrowser' Control.
Windowless ActiveX controls are not supported.

I searched the web and found a lot of references to the error but for the
condition when the application is closing, i.e. during the dispose event.
There appears to be no references to when the control is being initialized.
It fails on this statement:
AxWebBrowserMain.Visible = True

Basically, I am trying to hide the Browser until needed and then make it visible.

Any ideas?


Thanx.
 
Back
Top