Solved

Delphi X Application

Posted on 2009-07-16
4
281 Views
Last Modified: 2013-11-23
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
Comment
Question by:gdavidshaw
  • 2
4 Comments
 
LVL 14

Expert Comment

by:SteveBay
ID: 24871118
You will want to use the Form's OnCloseQuery Event there you can decide whether to allow a close or not.
0
 

Author Comment

by:gdavidshaw
ID: 24872601
What about the being cut off by the Task Manager?
0
 
LVL 14

Accepted Solution

by:
SteveBay earned 250 total points
ID: 24872690
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
 
LVL 2

Assisted Solution

by:gtrifidis
gtrifidis earned 250 total points
ID: 24877124
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
abstract class with all non abstract mentods 6 79
URL to download Windows 10 Home 2 156
Hibernate on windows 10 18 156
Not needed 13 118
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question