hi all,
i faced an error in my project:
"An unhandled exception of type 'System.Threadi ng.ThreadStateE xception'
occurred in system.windows. forms.dll
Additional information: Could not instantiate ActiveX control
'648a5600-2c6e-101b-82b6-000000000014' because the current thread is not in
a single-threaded apartment."
after i set as below:
Thread.CurrentT hread.Apartment State = ApartmentState. STA
other error occured:
Fail to set ApartmentState
anyone know why?
please help...Thanks
i faced an error in my project:
"An unhandled exception of type 'System.Threadi ng.ThreadStateE xception'
occurred in system.windows. forms.dll
Additional information: Could not instantiate ActiveX control
'648a5600-2c6e-101b-82b6-000000000014' because the current thread is not in
a single-threaded apartment."
after i set as below:
Thread.CurrentT hread.Apartment State = ApartmentState. STA
other error occured:
Fail to set ApartmentState
anyone know why?
please help...Thanks