Monthly Archives: February 2012

Note: I am assuming you have a form created in C#. 1) Create a Rich Text Box on the form. Right click on the box and open Properties. Under Design , change the name to: path (or whatever you want … Continue reading

Posted in C#, QC, Useful Stuff | Leave a comment

C# error fix: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made

If you see this error when you try to run your code An unhandled exception of type’System.Threading.ThreadStateException’ occurred in System.Windows.Forms.dll. Additional information: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Add … Continue reading

Posted in Uncategorized | Leave a comment