none
Unable to get the window handle for the 'AxActiveX' control. Windowless ActiveX controls are not supported RRS feed

  • Question

  • Hello...
    I have an MFC ActiveX that I use inside a .NET 2.0 WinForms application.
    The problem that I have is that if I change the screen resolution to 800x600, I get an exception "Unable to get the window handle for the 'AxActiveX' control. Windowless ActiveX controls are not supported." when loading the ActiveX - at EndInit() method. On other resolution the ActiveX is loaded.
    The size of the ActiveX is (656, 343).

    Any ideas?
    Thanks...

    Friday, May 9, 2008 9:55 AM

Answers

  • Change the form's AutoScaleMode to None so it doesn't try to scale the form to match the screen resolution.
    Friday, May 9, 2008 12:05 PM
    Moderator