Keep System Tray Icon Active

My VB app places an icon in the system tray with a context menu. In Windows XP if the app remains inactive for a little while the icon becomes hidden and user has to click the "show hidden icons" arrow to see it. Is there a way I can make the icon always stay in place in the system tray like Windows Live Messenger does?
submissiontechnologyAsked:
Who is Participating?
 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
you need some kind of "keep-alive" technique. Maybe you can create a timer event, and call some NotifyIcon's method or modify a property like Text.
0
 
orphancCommented:
Right click the taskbar, then select "Properties"

Under the Taskbar tab, click the box "Customize", it will show you a list of apps, which tend to show "hide when inactive" to the right of them. Select your VB app, and choose "show always". Does this help?

0
 
submissiontechnologyAuthor Commented:
I'd rather add some code to my app to do that rather than asking users to do that setting manually.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
submissiontechnologyAuthor Commented:
Thanks I've added a timer to reset the icon will see on Monday if it did the trick.
0
 
Wes MillerInfromation Technology SupportCommented:
You could also just have it execute systray.exe to refresh the takbar......
Systray.exe is a tool for system taskbar notifications. The taskbar provides a location for programs and hardware devices to display icons. For example, if your computer supports advanced power management (APM), a Battery Meter icon may be displayed on the taskbar.
0
 
submissiontechnologyAuthor Commented:
Thank you jaime_olivares, your suggestion worked perfectly.
0
All Courses

From novice to tech pro — start learning today.