bart Posted August 4, 2003 Posted August 4, 2003 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. I've 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 - I'd assume that this should be handled by the CLR - but alas something is going wrong. Whats happening here? Quote
*Experts* Volte Posted August 4, 2003 *Experts* Posted August 4, 2003 Try looking at this COM wrapper control for the HTML editor control. It may not be exactly what you want, but I think it is. Quote
Recommended Posts