Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Delphi X Application

When a person use the X button to terminate my App, what messages are sent to Delphi and how can I caught it code.?
0
gdavidshaw
Asked:
gdavidshaw
  • 2
2 Solutions
 
SteveBayCommented:
You will want to use the Form's OnCloseQuery Event there you can decide whether to allow a close or not.
0
 
gdavidshawAuthor Commented:
What about the being cut off by the Task Manager?
0
 
SteveBayCommented:
A close request from task mgr will cause the OnCloseQuery Event to fire but if the program does not finish it's work and close in time then task mrg's "End Program" prompt will appear and there is not much that can prevent that from closing the program.
0
 
gtrifidisCommented:
If the user terminates - kills the application from taskmanager no message will be send to the application.

As i said in this post
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_24573634.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now