procedure TForm1.FormActivate(Sender: TObject);
begin
with TForm.Create(Self) do try
ShowModal;
Randomize;
if Random(2) = 0 then Self.Close;
finally
Free;
end;
end;
begin
with TForm.Create(Self) do try
ShowModal;
Randomize;
if Random(2) = 0 then Self.Close;
finally
Free;
end;
end;
解决方案 »
- 散分:恭喜凯尔特人恭喜加内特恭喜雷阿伦恭喜皮尔斯,中国加油
- timer的小问题
- 我和XX不得不说的故事之:我和TortoiseSVN不得不说的故事。
- 请教一个打包程序安装时遇到的问题!
- 既简单又难的问题
- Delphi 中有没有FOR Each ... IN ... 语句?
- 请问怎样才能获得一个控件(如TTrackBar)上的消息.
- 请问:在MDI窗体的CLOSEQUERY事件中写代码就出错?
- delphi5 中可以用什么算法代替Delphi2009中的for in 循环啊?
- 如何使程序不被Ctrl+Alt+Del强行关闭?或只屏蔽Ctrl+Alt+Del?
- 如何去掉程序中的最后一个窗体
- sql語句中的integer型變量的問題,那位老大幫我看看???????謝謝
Forms,
Unit1 in 'Unit1.pas' {Form1};{$R *.res}begin
with TForm.Create(nil) do try
ShowModal;
Randomize;
if Random(2) = 0 then Exit;
finally
Free;
end; Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.