What's the default threading mode for VB .Net applications?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does it make sense to use

<STAThread()> Public Sub Main(

what's the default threading attribute for VB .NET

Thanks in advance

Richard
 
Richard,
VB.NET automatically adds the STAThread attribute to its Main if you do not
supply either STAThread or MTAThread attribute.

Although I do not explicitly add the STAThread attribute, it makes sense to
add it as you are being explicit that is what is intended. (in case the
default changes later).

Hope this helps
Jay
 

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