Error : ActiveX Control '8856f961-340a-11d0-a96b-00c04fd705a2' Cannot Be Instantiated Because The Current Thread Is Not In A Single-threaded ApartmentJul 24, 2009
I am trying to create a new thread that will import from an excel spreadsheet, because it was doing all the import before the form actually displayed to the screen. So the user never saw the form while it was importing..In the form's load event I create the thread and start it, but I get this large error:An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
I am using visual studio 2005 pro on Vista Business?