如何判断一个FORM是否已经创建,如果已创建,判断其是否可视,如不可视将其可视并将其设为当前窗口? 如何判断一个FORM是否已经创建,如果已创建,判断其是否可视,如不可视将其可视并将其设为当前窗口? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Button1Click(Sender: TObject);begin if Assigned(Form2) then if Form2.Visible=False then form2.Show;end; Assigned(Form1) form1.showing SetForegroundWindow(from1.handle) if assigned(Form1) then Form1:=TForm1.Create(nil);if Form1.visible=false then begin Form1.visible:=True; Form1.show;end; 要想使用上面的招数,首先要保证在该窗体释放时设置窗体变量为nil,否则不能使用Assigned,切记。 begin if Assigned(Form1) then begin .......... end;end; listview里每一行怎么设置小图标?ICON 请问一个关于指针的问题 关于MessageBox的问题,高手请进。 有哪位高手做过"传奇2私服",我做的私服为什么其它地区无法登陆? 字符串处理的问题,分没了,各位大侠帮帮我吧?在线等 散分! 有感于机器太慢,发点牢骚!同道中人请跟贴 如何用程序注册dll?在线等!!!!!!! delphi里面导出到word问题 如何将数据库中的数据送入excel中 世纪难题??? 有关TChart的问题 在线等待!高手襄助!!!!!!!!!!!!
begin
if Assigned(Form2) then
if Form2.Visible=False then
form2.Show;
end;
form1.showing
SetForegroundWindow(from1.handle)
if Form1.visible=false then
begin
Form1.visible:=True;
Form1.show;
end;
if Assigned(Form1) then
begin
..........
end;
end;