Solved

Keep System Tray Icon Active

Posted on 2007-11-30
6
396 Views
Last Modified: 2011-09-20
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?
0
Comment
Question by:submissiontechnology
6 Comments
 
LVL 2

Expert Comment

by:orphanc
ID: 20382015
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
 

Author Comment

by:submissiontechnology
ID: 20382096
I'd rather add some code to my app to do that rather than asking users to do that setting manually.
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20382112
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:submissiontechnology
ID: 20382681
Thanks I've added a timer to reset the icon will see on Monday if it did the trick.
0
 
LVL 11

Expert Comment

by:Wes Miller
ID: 20382840
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
 

Author Comment

by:submissiontechnology
ID: 20395088
Thank you jaime_olivares, your suggestion worked perfectly.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now