How do I change the name of a form?

  • Thread starter Thread starter Anil Gupte
  • Start date Start date
A

Anil Gupte

I am coming from VB and one can just righ-click on a form and rename it.
How do I do this in VC++?

TIA,
 
Anil said:
I am coming from VB and one can just righ-click on a form and rename
it. How do I do this in VC++?

Honestly, the best way is to not do forms programming in C++. Use C# to
build a user interface for your core functionality implemented in C++/CLI.

If you really want to rename a form, you need to rename all of the bits
individually - the .h file, the .cpp file (if there is one), the class
declaration, any typedefs or other uses of the class name, and I think there
are 1 or two designer-generated literal strings containing the form name as
well.

It's a PITA.

-cd
 
Since you are asking in a managed VC++ newsgroup, I'll assume you are
programming using managed code:

Form form ;

form.Text = "form title" ;

[==P==]
 
Back
Top