System Tray Example - Modify

R

rdi

I was able to get my utility to work using parts of the system tray example.

If you right click on "Show Form" my form pops up--but only if that form is
not already open.

What I'd like to figure out how to do next is have a button on my form that
not only closes the form--but closes the program itself as well (from the
system tray too).

Any thoughts on how best to accomplish this?
 
H

Herfried K. Wagner [MVP]

* "rdi said:
I was able to get my utility to work using parts of the system tray example.

If you right click on "Show Form" my form pops up--but only if that form is
not already open.

What I'd like to figure out how to do next is have a button on my form that
not only closes the form--but closes the program itself as well (from the
system tray too).

Remove the icon from the tray by setting its 'Visible' property to
'False', then call the form's 'Close' method.
 

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

Top