Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

How do I change the name of a form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anil Gupte - 25 Nov 2007 16:25 GMT
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,
Signature

Anil Gupte
www.keeninc.net
www.icinema.com

Carl Daniel [VC++ MVP] - 25 Nov 2007 17:13 GMT
> 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
Peter Anthony - 26 Nov 2007 19:04 GMT
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==]

>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,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.