News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Unable to get the windows handle for the 'AxDrawingControl' control

Started by Marx, April 27, 2013, 05:08:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marx

Hello,

I've had Visio 2007 and Visio 2010 concurrently installed on the same development machine for a while with no issues.  After installing Visio 2013 also side-by-side I get the following error for all versions (2007, 2010, 2013) when trying to open a form.  The form is an MdiChild hosting an AxDrawingControl.

System.NotSupportedException: Unable to get the window handle for the 'VisioDrawingControl' control. Windowless ActiveX controls are not supported.
   at System.Windows.Forms.AxHost.EnsureWindowPresent()
   at System.Windows.Forms.AxHost.InPlaceActivate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()

when calling ((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();

Appreciate any help.
M

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 133 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1050KB.
Tokens: post-login.
Cache hits: 13: 0.00160s for 26,742 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]