STAThread and common dialogs

I have a solution that was programmed in VS2003 for a small business I work for. It uses mutliple threads to do various automatic things without the users noticing. I recently upgraded to VS2005 with minimal issues. One major issue is that the program frequently uses savefiledialog and folderbrowserdialog. However, VS2005 says that the program must be in a single threaded model in order to use the dialogs.

I am assuming that this is probably true, since VS2005 seems to be very thread aware.

My question is why does the program need to be STA to use the common dialogs Can I write a custom dialog which will do the same things but run it in a MTA model Or is this "unsafe" as well

Thank you in advance for any advice.



Answer this question

STAThread and common dialogs