G
Guest
These things are rather basic, but I can't seem to find an explanation in
MSDN. I'm using VC++2005 Professional.
1. What steps must I take to rename a form?
I currently select the form in the Class Explorer, and then in the
properties window, I enter a new name under "Name". This seemed to work once
or twice, but after trying a couple of times, the name of the class displayed
by the class explorer does not match what I entered in the properties window.
2. What are the steps for renaming the .h/.cpp/.resx files containing the
code for the form?
It seems like the only way to do this is to select Save As from the file
menu. This will save the files under a new name, but will not change the
file name in the project. I tried to remove the old files, and then add to
the project the files with the new names, but then this brings me to my third
problem.
3. If I removed a form from my project, but then wanted to add it back to
the project, how do I do this such that the .resx file is associated with the
..h file in the solution explorer, the way it is when you initially add a new
form to a project?
Right now, I simply right click on the project name in the solution
explorer, select Add..., and then in the Open dialog, I select the three
files (.cpp/.resx/.h) associated with the form. But VS adds them to the
project as if they have nothing to do with each other. I consequently can't
figure out how to display and modify the form using the form designer.
Is any of this explained in the MSDN somewhere? If so, where?
Thanks for any help on this, and sorry if this message appears twice,
StephenJ
MSDN. I'm using VC++2005 Professional.
1. What steps must I take to rename a form?
I currently select the form in the Class Explorer, and then in the
properties window, I enter a new name under "Name". This seemed to work once
or twice, but after trying a couple of times, the name of the class displayed
by the class explorer does not match what I entered in the properties window.
2. What are the steps for renaming the .h/.cpp/.resx files containing the
code for the form?
It seems like the only way to do this is to select Save As from the file
menu. This will save the files under a new name, but will not change the
file name in the project. I tried to remove the old files, and then add to
the project the files with the new names, but then this brings me to my third
problem.
3. If I removed a form from my project, but then wanted to add it back to
the project, how do I do this such that the .resx file is associated with the
..h file in the solution explorer, the way it is when you initially add a new
form to a project?
Right now, I simply right click on the project name in the solution
explorer, select Add..., and then in the Open dialog, I select the three
files (.cpp/.resx/.h) associated with the form. But VS adds them to the
project as if they have nothing to do with each other. I consequently can't
figure out how to display and modify the form using the form designer.
Is any of this explained in the MSDN somewhere? If so, where?
Thanks for any help on this, and sorry if this message appears twice,
StephenJ