Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...