|
-
Jul 12th, 2004, 12:51 PM
#1
Thread Starter
Hyperactive Member
What does it mean by " <STAThread()> _"
<STAThread()> _
Shared Sub Main()
Application.Run(New Customers)
End Sub 'Main
Customer is the name of the windows form
I read some thing in help in regards to COM Interop..but in easy words what does STAThread mean?
Any explanation is very helpful.
thanks
nath
-
Jul 12th, 2004, 01:13 PM
#2
Single-Threaded Apartment threading model
It signifies to the COM InterOp layer that STA is the threading model used. If you don't have any COM InterOp in your app, then you don't need to worry about it.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 12th, 2004, 04:53 PM
#3
Thread Starter
Hyperactive Member
Please correct me If I am wrong.
"Com Interop" means If I am using any com dll's in my vb.net project, the .net should be able to communicate with dll (written in previous versions of vb) . Is that what it means?
thanks
-
Jul 12th, 2004, 05:45 PM
#4
Exactly
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|