Using an ocx without a form - InvalidActiveXStateException RRS feed

  • Question

  • I'm receiving this exception - InvalidActiveXStateException - when trying to use a third-part ocx inside my program, I need to instantiate it without plugin it on a winform.

    Thanks for any help.
    Monday, July 14, 2008 1:25 PM


  • Don't manipulate the control until its window is created.  The form's or user control's Load event is a good place.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Friday, July 18, 2008 5:45 AM
    Monday, July 14, 2008 8:28 PM