Solved

My computer will not shutdown nor restart.

Posted on 1998-10-03
3
181 Views
Last Modified: 2010-05-18
Hello all:

I have an application that puts an icon on the system tray.
Everything works fine, util i shutdown or restart my computer.  The computer will not shutdown nor restart if the systray icon is active.  I must first exit my application and then shutdown my computer.

Can anyone tell me what to do?...how can I detect if the computer receives a shutdown or restart instruction?
I'm using rxlib240 to handle the systray icon.

Thanks
0
Comment
Question by:jconde2
[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
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 80 total points
ID: 1341645
Hello

I guess you use CanClose := False; in the OnQueryClose() of the formmm....you can not do that.....instead use the Action := caNone in the OnClose() of the form........

Regards,
Viktor Ivanov
0
 

Author Comment

by:jconde2
ID: 1341646
Hey viktornet!

As always, it's great having you around!

Thank you :)
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1341647
>As always, it's great having you around!
Thanks!
>Thank you :)
No problem :)

Take care! Bye...

Regards,
Viktor Ivanov
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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