Why cant I rename a form

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Why is it that whenever I rename a form from Form1 to something else it
fails during the build. I get an error - Sub Main not found......

What is the problem? If I rename the form back to Form1, it works fine.
is there a fix?
 
Hello,

Jason said:
Why is it that whenever I rename a form from Form1 to something
else it fails during the build. I get an error - Sub Main not found......

What is the problem? If I rename the form back to Form1,
it works fine. is there a fix?

Rename the form and set it as startup object in the project properties
dialog box. In VS.NET 2002 and 2003 a dialog will be shown when clicking on
the "error" which displays a list of all available forms/'Sub Main's.

Regards,
Herfried K. Wagner
 
Also watch out for:-
If you rename a form in the solution explorer the Class name is not also
changed, so you must manually change this also.

Merlin
 
Back
Top