Im developing a Wysiwyg User control based on the AxDHTMLEdit ActiveX control.
The ActiveX control is contained within a wrapper user control which is contained in another user control that is used by a forms application. In the disposal of the wrapper control, this exception is thrown:
An unhandled exception of type System.Reflection.TargetInvocationException occurred in system.windows.forms.dll
Additional information: Unable to get the window handle for the AxDHTMLEdit control. Windowless ActiveX controls are not supported.
Ive done a lot of searching over the web and from what I can tell, an ActiveX control must know the handle of its parent window. Given that Handle property of the AxDHTMLEdit control is ready only - Id assume that this should be handled by the CLR - but alas something is going wrong.
Whats happening here?
The ActiveX control is contained within a wrapper user control which is contained in another user control that is used by a forms application. In the disposal of the wrapper control, this exception is thrown:
An unhandled exception of type System.Reflection.TargetInvocationException occurred in system.windows.forms.dll
Additional information: Unable to get the window handle for the AxDHTMLEdit control. Windowless ActiveX controls are not supported.
Ive done a lot of searching over the web and from what I can tell, an ActiveX control must know the handle of its parent window. Given that Handle property of the AxDHTMLEdit control is ready only - Id assume that this should be handled by the CLR - but alas something is going wrong.
Whats happening here?