System Tray Example - Modify

  • Thread starter Thread starter rdi
  • Start date Start date
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?
 
* "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.
 
Back
Top