Unit1.pas 561 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. unit Unit1;
  2. interface
  3. uses
  4. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  5. Dialogs, StdCtrls, CopyScreenFrm;
  6. type
  7. TForm1 = class(TForm)
  8. Button1: TButton;
  9. Label1: TLabel;
  10. procedure Button1Click(Sender: TObject);
  11. private
  12. public
  13. { Public declarations }
  14. end;
  15. var
  16. Form1: TForm1;
  17. implementation
  18. {$R *.dfm}
  19. procedure TForm1.Button1Click(Sender: TObject);
  20. begin
  21. Hide;
  22. Application.ProcessMessages;
  23. Sleep(500);
  24. Application.ProcessMessages;
  25. ShowCopyScreenForm;
  26. Close;
  27. Form1 := nil;
  28. end;
  29. end.