View Full Version : DElphi DFM ,adding controls

August 28th, 2001, 13:53
I want to add a new control to a existing Dlephi EXE file. WHen i modfiy a control in a form it works perfectyl, but crashes whne a new control is added.
Im using DFM explorer and BRW 45 to get ti running

August 29th, 2001, 09:08
That's would be great, but AFAIK it cannot be done!
Adding controls means not only to modify the .DFM file (and consequently the RCDATA resource in the executable file), but also the .PAS file (and consequently the .DCU, which gots linked in the code section of the executable itself). That's so because you have to modify the declaration of your TForm class in order to contain the new component declaration, which in that way will be created...