Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

OpenFileDialog

Hello,

I have been seeing all post on OpenFileDialog and there are things that I do not understand.

I have SBO 2005 and VB.NET 2005, I have proven all the codes that I have found in post and does not work and to me it continues appearing the damn error :

""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.""

Does it work to somebody OpenFileDialog or somebody knows like doing it?

THANKS, VERY THANKS

pMa

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question