You can also get rid of it with: $ni->DESTROY;
(assuming $ni is the current NotifyIcon) > -----Original Message----- > From: Sherif Mohamed [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 15, 2004 6:08 AM > To: perl-win32-gui-users@lists.sourceforge.net > Subject: [perl-win32-gui-users] Work Arround to hide tray icon > > > I can hide the tray icon before the program exist by trying > to show an empty > (invalid) tray icon with the same id. > > sub main_Terminate { > my $icon1; > $ni = $main->AddNotifyIcon(-name => "NI", -id => 1, -icon => > $icon1, -tip > =>"MyApp App"); > $main->Hide(); > -1; > } > > Hope this is useful to somebody :) > I tried on win2003 server, Activstate perl 5.83 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >