Here is the error message that I am recieving when I try to open an OpenFileDialog in my program:
\"Current thread must be set to single thread apar
t.SetApartmentState(ApartmentState.STA);
The above line of code worked for me. once try it.