Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Action := CaNone;
  2.  
  3. Form1.Hide;
  4.  
  5. procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
  6. Begin
  7. ShellExecute(Handle, nil, PChar(Application.ExeName), nil, nil, SW_SHOWNORMAL);
  8. Application.Terminate;
  9. End;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement