• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

Change Form ClassName?

How Can I Change My Form Class Name From
TForm1
0
saar071697
Asked:
saar071697
  • 4
  • 3
  • 2
  • +1
1 Solution
 
kretzschmarCommented:
? just give it another name
0
 
intheCommented:
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
 
intheCommented:
yep just do that :o)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

Regards, Madshi.
0
 
GreymanCommented:
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
 
intheCommented:
i see there's some blind (or ignorant )people around here lately !
0
 
kretzschmarCommented:
seems to me too
0
 
GreymanCommented:
Weren't you guys ever new at anything?
0
 
intheCommented:
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
 
GreymanCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now