Groups | Blog | Home
all groups > vb.net > april 2004 >

vb.net : System Tray Example - Modify


rdi
4/12/2004 11:01:30 PM
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

(remove the exclamation from the email address)

hirf-spam-me-here NO[at]SPAM gmx.at
4/13/2004 11:30:10 PM
* "rdi" <rdi!@writeme.com> scripsit:
[quoted text, click to view]

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

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button