Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a Generic form

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
I need to make a form, much like in File->New->Forms, except that it has code that comes with it when it is selected or loaded. I need to, for example click on one tite in a listbox, and make a new form displaying this titles properties, and then if I click another title, I need another form with the same hard-wired code to come up, displaying the other title's properties. Could I do this in a DLL, or could I make a component being the form with the code? I've never tried making a component thats a form, can I do that?
Thanks, Cyprus
 
Greetinx!

Try to use a dynamical creation of a form, i.e.
Form1 = new TForm(this);
...
// settings properties Happy programming!))
 
Thank you Pavlo, and nevermind. I asked too quickly, and underestimated myself. That is exactly what I did, and it worked great. I had just forgotten how to and asked just minuites before I remembered. Sorry I wasted your time! Cyprus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top