This documentation is archived and is not being maintained.

Potential Threading Model Issue When Hosting ActiveX Controls in WFC Forms

Visual Studio 2005

When hosting ActiveX controls in WFC Forms, you may be required to set the apartment model of the thread hosting the ActiveX control to the single threaded apartment (STA). This requirement is mostly satisfied by attaching the System.STAThread attribute to the public static void main(String[] args) method of the class.

Show: