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
 
Back
Top