BINO VARGHESE wrote:
)<STAThread()> _ and <mtathread()> _ before the class is intialized. Is it the correct place ?
From your description, and not being able to see any code, I seriously doubt it. Those attributes don't go on classes.
BINO VARGHESE wrote:
2)System.Threading.Thread.CurrentThread.ApartmentState = Threading.ApartmentState.STA
That won't work as you can't change the apartment state after a thread is started. Somehow, I don't even think your starting a new thread. There are no other suggestions. Without knowing anything about your code, what it looks like, what this component is doing, there's really nothing I can say.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008