Deriving a Form with ActiveX objects on it...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcin Grzêbski

    Deriving a Form with ActiveX objects on it...

    Hi Group,

    I know that if i want to run a windows form with
    ActiveX control and variables on it, i have to set
    [STAThread] attribute for Main() function.
    But if i want to deriving this form in other form
    then i've got exception when i run it's designer:
    "Unspecifie d error".

    I look on this exception's stack trace and i fing
    that it occure on ActiveX object constructor.

    So it looks to me very similar to problem with [STAThread]

    Any help will be very useful!

    Regards

    Marcin Grzêbski

Working...