Home > Back-end > Questions about access to dynamically create the form control
Questions about access to dynamically create the form control
Time:10-02
Good god, meet a problem, struggled for several years, Problem description: Form 1, name=Form1, form 2, name=Form2, if the form 1, 2 are static, so if in the forms 1 visit form 2 for a button, then I can directly in the function in form 1 write Form2 - & gt; For the="hello". Now the problem is that if the form of 1 is created dynamically, if be created in the form of 0, create code: * * pForm TForm; PForm=new TForm1 (Application); PForm - & gt; ShowModal (); Form 2 is a function of a form 1 dynamically created, create code is the same, if I want to be in the form of 2 is closed with some may affect the data in form 1, need to access the controls in form 1, is the problem, I tried several ways are not, I do not know what a great god can help answer, thank you very much, Programming environment: CB6.