Solved

Delphi X Application

Posted on 2009-07-16
4
278 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now