Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Change Form ClassName?

Posted on 2000-04-12
10
321 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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