Home All Groups Group Topic Archive Search About

Problem converting to VS2005 - No SUB MAIN found!

Author
28 Mar 2006 1:51 PM
Bill nguyen
I converted a VB.NET 2003 app to 2005.
I got error "SUB MAIN" not found. Why 05 requires a Sub Main to run? I never
used Sub Main in my apps.

Thanks

Bill

Author
28 Mar 2006 3:11 PM
Cor Ligthert [MVP]
Bill,

I don't use them as well not in 2003 and not in 2005

So there should be something special.

What is hart to see from here.

Cor

Show quoteHide quote
"Bill nguyen" <billn_nospam_please@jaco.com> schreef in bericht
news:O9CCv6mUGHA.4772@TK2MSFTNGP14.phx.gbl...
>I converted a VB.NET 2003 app to 2005.
> I got error "SUB MAIN" not found. Why 05 requires a Sub Main to run? I
> never used Sub Main in my apps.
>
> Thanks
>
> Bill
>
>
Author
28 Mar 2006 7:12 PM
hayworth@hotmail.com
It doesn't.  I'm looking at my project right now and it starts from a
form, frmMain.  From the pulldown, select "Project/YourApp
Properties..." - down at the very bottom.  It should come up with the
Application tab (on the left column) selected.  What does it say for
your startup object?  If it says Sub Main and you want it to say a
form, just select the form from the dropdown list.