Solved

My computer will not shutdown nor restart.

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

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

13 Experts available now in Live!

Get 1:1 Help Now