okay.. so i know how to do this with text from the documentation example. thing is... i need to call a saveFileDialog to do saveFileDialog.showDialog() from a thread other than it was created on. so how do i invoke the control to do this???
the only thing close that i can find is this: http://www.vbdotnetforums.com/showthread.php?t=13763
which i dont really understand.
if i just call savefiledialog1.showdialog() on the thread, it'll show this(even tho i did add that STA thingy):
System.Threading.ThreadStateException was unhandled
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process."
please help. thanks.
the only thing close that i can find is this: http://www.vbdotnetforums.com/showthread.php?t=13763
which i dont really understand.
if i just call savefiledialog1.showdialog() on the thread, it'll show this(even tho i did add that STA thingy):
System.Threading.ThreadStateException was unhandled
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process."
please help. thanks.