473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Why cant I rename a form

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?
Nov 20 '05 #1
2 6078
Hello,

"Jason" <no**@none.invalid> schrieb:
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
--
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
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

"Jason" <no**@none.invalid> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...
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?

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: TroelsM | last post by:
Hi there ! I am trying to rename a column i Access Set Conn1 = Server.CreateObject("ADODB.Connection") Conn1.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &...
2
by: Bill Stock | last post by:
I've been renaming the ALL high level objects in a database and searching out the dependent objects to change the references. This was all going fairly well, until DoCmd.Rename stopped working on...
1
by: solar | last post by:
In my subform i have controls which i want to rename but i do not want to change the real names of the fields in the tables,nor add the name to the Caption in the field of the table.Is it possible...
4
by: Lyle Fairfield | last post by:
I had a Sproc which returned a field called Details. I had the Form Wizard create a continuous form with the Sproc as the RecordSource (as a shell for me to modify). I renamed the Details...
0
by: Smokey Grindle | last post by:
Ive had this problem since .NET 1.1, every time i rename a litteral objec in the IDE designer in design view of the webpage it doesnt change...anyone know why? or if it does it changes back to...
2
by: AA Arens | last post by:
During my database construction, I left the names of the buttons, comboboxes named by default like Combo77, Command43. I can rename them with Properties Other Name, but them I start getting...
1
by: hardik | last post by:
can anyone tell me how i can change the filename which is going to uploaded here is a code for uploading a file <!-- #include file="clsUpload.asp" --> Set objUpload = New clsUpload If...
1
by: prabhat tiwari | last post by:
if u r failing to rename ur form then do one thing there is a folder vswbcache it contain all project in cache so just delete ur project from the cache then u can rename the form.
2
by: Ole Mercano | last post by:
When I create in Designer a new button on my Form it is automatically named e.g. "button1". When I doubleclick on it I am directed to the Form.cs where the following procedure is automatcially...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.