Solved

My computer will not shutdown nor restart.

Posted on 1998-10-03
3
178 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 157
Delphi cmd execution 6 60
Help on project with Soap 10 54
Embarcadero C++ builder XE10.1 Berlin find In files dialogue stunted display 4 32
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

778 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