Yeah the version I'm running is:
Microsoft Visual Basic .NET 7.1.3
I think I found out what cause the problem but I really don't know how to
fix it.
I'm still getting the same error message which could possibly be coming from
the fact that I renamed my Form. I did this on the main form and the same
error message specific for 'FORM 1' Came up. I renamed both back to the
default names but I'm still getting that same error for form2! I searched for
this procedure in the Windows Generated code, but it is no where to be found.
Stumped!
I'm too far into the application (2 1/5) weeks, create a new form. So if you
have any ideas let me know...
Thanks
[quoted text, click to view] "pvdg42" wrote:
>
> "Neo" <Neo@discussions.microsoft.com> wrote in message
> news:057FFC1A-1022-4047-ADA9-C4D63194F877@microsoft.com...
> > Hi I'm trying to create an application with a second form. I have already
> > added this form sucessfully and everything on the form works fine. But
> > when
> > Trying to complie the program I get an Error Stating :
> >
> > Missing Shared Sub Main Procedure....There is no Valid Sub Main
> > Procedure...
> >
> > I have tried adding the procedure just about everywhere i the second form
> > code, but it still says it is missing.
> > Does anyone know what code I should add to Get rid of this error??
> > I though VB.Net added this procedure automatically....
> > Thanks
>
> What edition/version of Visual Studio or Visual Basic are you using?
> I tried reproducing your situation in both Visual Studio .NET 2003
> Professional and in Visual Studio 2005 Professional. No error with multiple
> forms.
>
>
[quoted text, click to view] "Neo" <Neo@discussions.microsoft.com> wrote in message
news:F9888655-6609-4F06-B0B1-1E3E6E6B8DAB@microsoft.com...
> Yeah the version I'm running is:
> Microsoft Visual Basic .NET 7.1.3
>
> I think I found out what cause the problem but I really don't know how to
> fix it.
> I'm still getting the same error message which could possibly be coming
> from
> the fact that I renamed my Form. I did this on the main form and the same
> error message specific for 'FORM 1' Came up. I renamed both back to the
> default names but I'm still getting that same error for form2! I searched
> for
> this procedure in the Windows Generated code, but it is no where to be
> found.
> Stumped!
> I'm too far into the application (2 1/5) weeks, create a new form. So if
> you
> have any ideas let me know...
> Thanks
>
If you renamed that form after you'd created other project components and/or
writing code yourself, that will cause problems.
Have you searched through all the code in the project, especially any
generated code, to find and correct all references to "Form1"?