G guoyonglin Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-23 #1 我有一个button1在form1,现在我在delphi7新建一个form2。我想当软件运行时,鼠标一按button1就出现form2。form2.show好像不能实现,不知还要加什么代码?
S sim_might Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-23 #2 晕,,,, 你在Unit1中use Unit2了吗???
C chengangsir Unregistered / Unconfirmed GUEST, unregistred user! 2004-03-23 #3 form1 uses form2's unit; form1.button1onclick(); begin form2.show; end; or form1.button1onclick(); var form2:tform; begin form2:=tform.create(nil); form2.showmodal; end;
form1 uses form2's unit; form1.button1onclick(); begin form2.show; end; or form1.button1onclick(); var form2:tform; begin form2:=tform.create(nil); form2.showmodal; end;