How can I get my VB.NET forms application startup method to be Sub Main() in Program.vb?

Posted by SLC on Stack Overflow See other posts from Stack Overflow or by SLC
Published on 2010-05-17T14:04:09Z Indexed on 2010/05/17 14:10 UTC
Read the original article Hit count: 542

Filed under:
|
|

Trying to get it to behave like C#, where there is a Program class with a static Main method.

However, in the project properties, I cannot set Program.vb to be the startup object, only the forms (it is a forms application).

Am I missing something?

I am using the VS2010 and the latest VB.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about VS2010