Minimize to tray

  • Thread starter Thread starter mphanke
  • Start date Start date
Hi
use notifyicon

.... and catch SizeChanged event to check WindowState (Minimized),
then set ShowInTaskbar to false.

If your WindowState changes to other than Minimized then hide
NotifyIcon and set ShowInTaskbar to true.

Cheers!

Marcin
 
Hi Martin,

Based on my understanding, you want some sample about how to minimize a
application to system tray.

You may follow the community's suggestion to use NotifyIcon class, please
refer to the below article:
"Creating a System Tray Application"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/htm
l/csharp06102002.asp

============================
Please apply my suggestion above and let me know if it helps resolve your
problem.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top