Home All Groups Group Topic Archive Search About

Form Naming in VB.Net 2003

Author
13 Jan 2006 6:29 PM
Joe Firmont
I want to my VB form a name different from 'Form1'. I do this in 'properties'
..  I find that on running 'Debug' I get an error message BC30420. Sub Main
was not found ing 'Name.Form1'.  What am I doing wrong?

Author
13 Jan 2006 7:18 PM
Chris
Joe Firmont wrote:
> I want to my VB form a name different from 'Form1'. I do this in 'properties'
> .  I find that on running 'Debug' I get an error message BC30420. Sub Main
> was not found ing 'Name.Form1'.  What am I doing wrong?

Goto your project properties and look at the startup form.  It needs to
be changed to whatever you changed your form to.

Chris
Author
13 Jan 2006 7:47 PM
Herfried K. Wagner [MVP]
"Joe Firmont" <Joe Firm***@discussions.microsoft.com> schrieb:
>I want to my VB form a name different from 'Form1'. I do this in
>'properties'
> .  I find that on running 'Debug' I get an error message BC30420. Sub Main
> was not found ing 'Name.Form1'.  What am I doing wrong?

Double click the error message and select the new startup form.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>