?
Solved

My computer will not shutdown nor restart.

Posted on 1998-10-03
3
Medium Priority
?
184 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 320 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

771 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