D
delphiboy
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.N3Click(Sender: TObject);<br>begin<br> if findwindow('TTj_Form','报表生成器')=0 then<br> begin<br> application.CreateForm(TTj_Form,Tj_Form);<br> Tj_Form.show ;<br> end else<br> begin<br> Tj_Form.Position :=poMainFormCenter ;<br> SetActiveWindow(findwindow('TTj_Form','报表生成器'));<br> end;<br>end;<br><br>我的目的是防止一个窗体出现多次,但为什么这样不行?