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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top