VB.NET 1.1 Tutorial - The STAThread KeywordSTAThread stands for Single Threaded Appartment Thread. This means in the process (application), there is only one thread which will accomplish all of the tasks for the process. <STAThread()> Shared Sub Main() ' ... End Sub It is mandatory to give <STAThread()> for the main method in ver 1.0 of the .Net Framework. This is no longer mandatory for .Net Framework 1.1. ReferencesFor more information on the STAThreadAttribute Class, visit MSDN at microsoft here. What Next?Return to the Tutorial Contents. |