I get the following exception when calling saveFileDialog.ShowDialog() in a background thread:
saveFileDialog.ShowDialog()
Current thread must be set to single thr
this should work if you are creating the thread in which you call the showDialog:
var thread = new Thread(new ParameterizedThreadStart(param => { saveFileDialog.ShowDialog(); })); thread.SetApartmentState(ApartmentState.STA); thread.Start();