473,395 Members | 1,622 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,395 software developers and data experts.

Renaming WinForms in VC++

Hi,

I am almost embarrassed to ask this but I can't figure out how to rename a
form (and it's file) in VC++. I don't like being stuck witht the main form
called Form1. I'm sure it must be obvious but it looks like the name is
read-only in the property view.

Thanks,
Joe
Nov 17 '05 #1
3 1595
Joe Thompson wrote:
Hi,

I am almost embarrassed to ask this but I can't figure out how to
rename a form (and it's file) in VC++. I don't like being stuck
witht the main form called Form1. I'm sure it must be obvious but it
looks like the name is read-only in the property view.


Amazingly, there's no facility to do this. IMO your best bet is when you
create a new project, immediately delete Form1 and create a new form with a
more sensible name.

For an existing project, you have to go manually rename the form in a bunch
of places - tedious and error prone, but it can be done.

-cd
Nov 17 '05 #2
Hi,

Thanks for the reply. When you say to "immediately delete Form1", how do
you do this? I tried deleting the form1.cpp and form1.h files from the file
view, added a new winform called MainForm and compiled but I got an
unresolved external symbol _WinMain@16. What am I doing wrong?

Thank you,
Joe

Nov 17 '05 #3
Joe Thompson wrote:
Hi,

I am almost embarrassed to ask this but I can't figure out how to rename a
form (and it's file) in VC++. I don't like being stuck witht the main form
called Form1. I'm sure it must be obvious but it looks like the name is
read-only in the property view.


I haven't had any trouble doing the following (routine now)
1. left click on file (Form1.cs) in solution explorer and hit F2 to
rename the file.
2. in the file do a change of Form1 to xxxx
3. Change the AssemblyInfo version to remove the *.*

#3 isn't needed to solve your problem but it prevents clogging the
download cache every time it's run..

/steveA
Nov 17 '05 #4

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

Similar topics

0
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
4
by: Charles Fineblum | last post by:
Hi: I'm getting subject error when loading Form into WinForms designer. Application complies and runs fine, but can not load form into designer. This has happened twice and forced me to restart...
1
by: Chris | last post by:
Hi, I create a new VC++ project, then want to rename the default filename Form1 (used for .h, .cpp, .resx) to something else. If I rename it from within Windows explorer the project becomes...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
4
by: Shil | last post by:
Hi, In VC++.Net 2005 visual studio, if I create a new winform drag and drop a button, then double click it to write click event code, then it auto generates the template code for the event in...
8
by: BillCo | last post by:
I'm updating a legacy app with table naming that makes baby jesus cry. It's a bit of a spider web though... no telling when and where the tables will be called by name. So I wrote this for renaming...
6
by: Z.K. | last post by:
I was wondering if someone might tell me how to rename a VC++.NET 2003 project or is there a product that might do it for me that I could buy. If I was using VC++ 6, I could use a product called...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.