July 8th, 2003, 04:32 AM
Join Date: Jul 2003
Time spent in forums: < 1 sec
Reputation Power: 0
| Originally posted by Tore |
I was looking for the same thing, and your post came out first on my Google search. Anyway, Apparently it is setting a the attribute for the Main method that defines the threading model for the form. I found this in VS.Net Help under "Form Class".
Indicates that the default threading model for an application is single-threaded apartment (STA).
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Threading models only pertain to applications that use COM interop. Applying this attribute to an application that does not use COM interop has no effect.
The startup threading model can be set to single-threaded apartment or multithreaded apartment. If it is not set, then the thread is not initialized.