STAThread

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Do we need to put the STAThread attribute on our Sub Main anymore if we are
using the 1.1 Framework? See some YEAs and NEAs when searching on Google so
thought I would ask here.

Tom
 
Tom,
My understanding is that VB.NET will add STAThread attribute for you if you
do not explicitly include the STAThread or MTAThread attribute on your sub
main.

Using ILDASM.EXE on a number of my projects have confirmed this
understanding.

Hope this helps
Jay
 
* "Tom said:
Do we need to put the STAThread attribute on our Sub Main anymore if we are
using the 1.1 Framework? See some YEAs and NEAs when searching on Google so
thought I would ask here.

It's STA by default, you don't need the 'STAThread' attribute.
 
Back
Top