tiimer想要实现label2显示内容,延时一秒后窗体自动关闭怎么写啊,谢谢!
procedure TForm2.Timer1Timer(Sender: TObject);
begin
Label2.Visible:=true;
Label2.Caption:=内容!';//这句不显示
from1.close; //直接就窗体关闭了
end;
procedure TForm2.Timer1Timer(Sender: TObject);
begin
Label2.Visible:=true;
Label2.Caption:=内容!';//这句不显示
from1.close; //直接就窗体关闭了
end;
begin
inc(s);
Label2.Visible:=true;
Label2.Caption:=内容!';
if s>1 then from1.close; //直接就窗体关闭了
end;
if s>1 then application.Terminate; //直接就窗体关闭了