Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / November 2004



Tip: Looking for answers? Try searching our database.

Control when to Hide/Show Inactive System Tray Icon

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerry McMorran - 30 Nov 2004 16:49 GMT
For Windows XP, inactive system tray icons will be hidden automatically according to the user's OS settings.
I know I could send a "modify" message at constant time interval to prevent my icon from being inactive. However, I would like to be
more flexible....
When you right-click the XP's task bar, you can set such settings for each icon. There are 3 choices available: "Hide if inactive",
"Always show", "Always hide".
What I'm thinking of is that are there any APIs or Registry entries to control the settings for a specific icon only? Or how to
modify those OS settings programmatically?

Thanks in advance!
Ken Halter - 30 Nov 2004 17:23 GMT
> What I'm thinking of is that are there any APIs or Registry entries to
> control the settings for a specific icon only? Or how to
> modify those OS settings programmatically?

I haven't tried but..... here's some code.

Subject: Making certain programs' tray icons "always show" programatically
http://groups.google.com/groups?hl=en&lr=&selm=2e1feb28.0405101825.7e16738%40pos
ting.google.com


Signature

Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..

Jerry McMorran - 30 Nov 2004 18:56 GMT
Thanks! I finally see some code for this.
At a glance, the code is accessing the registry and modify the "TrayNotify" key's "IconStreams" value.
However, I tried to export the content of that key to a .reg file first. Then I changed an icon from "Hide when unused" to "Show
always" by right clicking on the taskbar. And I then do another export again. I do a diff (file compare) on the 2 .reg files, they
are the same...
Where did the change go?

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> ¼¶¼g©ó¶l¥ó·s»D:#qAeRFw1EHA.412@TK2MSFTNGP14.phx.gbl...
> > What I'm thinking of is that are there any APIs or Registry entries to
> > control the settings for a specific icon only? Or how to
[quoted text clipped - 8 lines]
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> Please keep all discussions in the groups..
Jerry McMorran - 30 Nov 2004 19:16 GMT
Oh, I've found out the reason.
It's been mentioned subsequent messages in the thread.

"Jerry McMorran" <jerry@home.soho> ???????:OT9xW5w1EHA.164@TK2MSFTNGP10.phx.gbl...
> Thanks! I finally see some code for this.
> At a glance, the code is accessing the registry and modify the "TrayNotify" key's "IconStreams" value.
[quoted text clipped - 16 lines]
> > Ken Halter - MS-MVP-VB - http://www.vbsight.com
> > Please keep all discussions in the groups..
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.