By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,338 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,338 IT Pros & Developers. It's quick & easy.

App with tray icon

P: n/a
RF
Hi,

I have an app with a notify icon. On the closing event, I set the
ClosingEventArgs.Cancel = False and hide the form. So, when the user clicks
"x" in the window, the form is hidden from the user.

However, if the user decides to restart or shutdown the system, the tray
icon remains persistent until I manually close the app.

How do I resolve this issue. Any help is appreciated.

TIA,

Randy F.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
look for
WM_ENDSESSION n/r ENDSESSION_LOGOFF
and close ur application

"RF" <rf@someemail.com> wrote in message
news:Oc**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have an app with a notify icon. On the closing event, I set the
ClosingEventArgs.Cancel = False and hide the form. So, when the user clicks "x" in the window, the form is hidden from the user.

However, if the user decides to restart or shutdown the system, the tray
icon remains persistent until I manually close the app.

How do I resolve this issue. Any help is appreciated.

TIA,

Randy F.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.