T tianlianglm Unregistered / Unconfirmed GUEST, unregistred user! 2008-11-10 #1 如何在form1中创建form2的动态控件? 谢谢!
A aikede Unregistered / Unconfirmed GUEST, unregistred user! 2008-11-10 #2 unit2单元定义: MyBtn:TButton; Unit1: MyBtn:=TButton.Create(nil); MyBtn.Width:=10; MyBtn.Height:=10; MyBtn.Caption:='asdfadsfdsaf'; MyBtn.Visble:=true; MyBtn.Parent:=Form2;//注:先要创建Form2
unit2单元定义: MyBtn:TButton; Unit1: MyBtn:=TButton.Create(nil); MyBtn.Width:=10; MyBtn.Height:=10; MyBtn.Caption:='asdfadsfdsaf'; MyBtn.Visble:=true; MyBtn.Parent:=Form2;//注:先要创建Form2