For the thread that you’re trying to start the GUI element in, you need to set the apartment state of the thread to STA BEFORE you start it.
Example:
myThread.SetApartmentState(ApartmentState.STA);
myThread.Start();
For the thread that you’re trying to start the GUI element in, you need to set the apartment state of the thread to STA BEFORE you start it.
Example:
myThread.SetApartmentState(ApartmentState.STA);
myThread.Start();