Removing a system tray icon

Tacec

Member
Joined
Jun 14, 2005
Messages
18
Location
Renton, WA
Programming Experience
1-3
I'll preface this by stating that I'm fairly new at .NET. :eek:

I've created a program that runs within the system tray. Once a radio button is clicked, it displays the icon within the tray. When the other radio button is clicked it's supposed to remove the icon from the tray.

I've tried ntfSystemTray.visible = false in the 2nd radio button's checkchanged event but it doesn't seem to work. The only way the icon is removed from the tray is when the program is closed entirely.

What am I missing?? Help please!!
 
It works for me, although strictly speaking you should test whether the RadioButton that raised the event is checked or not, because the CheckChanged event is raised when a RadioButton is checked or unchecked. Perhaps you should post your code (just the CheckChanged event handlers) so we can see if there is anything else that might affect the situation.
 
Back
Top