?
Solved

Delphi X Application

Posted on 2009-07-16
4
Medium Priority
?
285 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 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 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
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…

752 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