Solved

Change Form ClassName?

Posted on 2000-04-12
10
317 Views
Last Modified: 2010-08-05
How Can I Change My Form Class Name From
TForm1
0
Comment
Question by:saar071697
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2709101
? just give it another name
0
 
LVL 17

Expert Comment

by:inthe
ID: 2709105
hi saar,
to change the class name of your forms just change the forms name(in object inspector)
for instance if the forms name is SOME_SILLY_NAME then
class name will be TSOME_SILLY_NAME
..

Regards Barry
0
 
LVL 17

Expert Comment

by:inthe
ID: 2709112
yep just do that :o)
0
 
LVL 20

Expert Comment

by:Madshi
ID: 2710767
You can also overwrite "CreateParams". Then you can choose whatever name you like (even without that "T" in the beginning).

Regards, Madshi.
0
 
LVL 1

Accepted Solution

by:
Greyman earned 50 total points
ID: 2710803
In the property inspector, make sure that your form is the active object, and change its Name property.  In most cases, this doesn't change the ClassName - but it does for Forms, DataModules and other things that have a unit all to themselves.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:inthe
ID: 2712760
i see there's some blind (or ignorant )people around here lately !
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2713375
seems to me too
0
 
LVL 1

Expert Comment

by:Greyman
ID: 2714154
Weren't you guys ever new at anything?
0
 
LVL 17

Expert Comment

by:inthe
ID: 2714197
neither yourself or saar are new to experts-exchange or delphi..

you have taken credit for something meikl and myself said 12 hours earlier..
surely meikl(kretzschmar) should have had the points for being first to mention the correct answer ..
a little pleasant manners go along way .
0
 
LVL 1

Expert Comment

by:Greyman
ID: 2714241
Somehow I don't think that 'just give it another name' is a particularly helpful answer.

Your answer was certainly stronger in the helpfulness department, but (being in Australia, and somewhat easily confused when it comes to what time it is on websites) it seemed to have gone unaccepted for a long time.  (Having also returned to EE after a 4-month absence.)

I therefore gave an answer with an explanation, as opposed to a one-liner.

To steal was not my intention, and I regret any offence caused.



Nick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now