By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,982 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,982 IT Pros & Developers. It's quick & easy.

VS 2003 to VS 2005 conversion issues - threading.

P: n/a
I have a windows forms solution created with VS 2003 (VB). I have used the
VS conversion wizard to convert to VS 2005. Now when the program gets to the
following code I get error message "ActiveX control
'8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the
current thread is not in a single-threaded apartment." I have added the
<STAThreadattribute to the form initialize sub, recompiled successfully,
but still get the error.

Public Sub New()

'This call is required by the Windows Form Designer.


End Sub

I have searched everywhere on the web but cannot find a resolution to this
issue. Please HELP! Thanks.
Apr 25 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
What ActiveX control are you trying to use?

Apr 26 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.