TechyMedia

A .NET Technology blog | .NET,C# Progamming,C# tutorials,WPF WCF|Software Engineer

NAVIGATION - SEARCH

What is STAThread Attribute?

Attribute [STAThread] is a mandatory attribute for all windows forms application. STAThread attribute need to be applied to set the current thread apartment state as single threaded. This means that the COM threading model for the application is single-threaded apartment.
Attribute [STAThread] is a mandatory attribute for all windows forms application. STAThread attribute need to be applied to set the current thread apartment state as single threaded. This means that the COM threading model for the application is single-threaded apartment. [More]