'Sub Main" was not found in 'MyProj.Form1'

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

After changed the form's name from Form1 to myForm, the compiler sent this message 'Sub Main" was not found in 'MyProj.Form1'. Please help. Thanks

(I am learning to create a windows app using VB .NET)
 
* =?Utf-8?B?Smlu?= said:
After changed the form's name from Form1 to myForm, the compiler sent
this message 'Sub Main" was not found in 'MyProj.Form1'. Please
help. Thanks.

Select the project in the solution explorer, choose "Properties" from
its context menu and set the "startup object" to your main form.
 
Jim
Right click on the project file in the Solution Explorer, and choose
Properties at the bottom of the popup menu.

In the Property Page, under General,click the Startup object: dropdown and
choose the new form name.
Click ok to close the property page.

HTH
Les Smith
http://www.KnowDotNet.com

Jin said:
After changed the form's name from Form1 to myForm, the compiler sent this
message 'Sub Main" was not found in 'MyProj.Form1'. Please help. Thanks.
 
Jin
Right click on the Project in the Solution Explorer. Select Properties from
the context menu. Under the Common Properties, General folder, click the
Startup Object Combo and select the new form.

HTH
Les Smith
http://www.KnowDotNet.com

Jin said:
After changed the form's name from Form1 to myForm, the compiler sent this
message 'Sub Main" was not found in 'MyProj.Form1'. Please help. Thanks.
 
Back
Top