Hi, Juli
I can give you 2 ways to check the COM threading model.
1. find your Main function, you might find there are attributes applied to
the Main function, usually it looks like
[STAThread]
static void Main()
{
...
}
2. If you are not able to get your Main function source (I presume the
source file is owned by somebody else), you still can get the current COM
threading model by calling ApartmentState in Thread class, it looks like
using System.Threading; // you have to add this namespace
ApartmentState state = Thread.CurrentThread.ApartmentState;
// you can set breakpoint here to check the value of state. or pop up a
message box to display it.
Add this code just before your call ShowDialog function, you will know what
COM threading model the FolderBrowser is running on?
Help this helps
"juli jul" <ju******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello,
Could you please tell me how to check those attributes in main,I tried
to read about it in the net bit somehow not sure how to do it?
Thank you very much!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!