Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dynamic System Tray Icons

Posted on 2004-09-30
4
Medium Priority
?
199 Views
Last Modified: 2010-04-23
I have designed an application that runs majorly as an icon in the windows system tray.  Currently, this icon contains two small 4x4 "dots"  Each of the two 4x4 areas for the dots can either be empty, representing an off state, or filled red, representing an on state.  I currently have 4 different .ico files, one for each possible state of the icon (both dots on, dot 1 on and dot 2 off, dot 2 off and dot 1 on, or both dots off).  Given different circumstances, the application changes the icon in the system tray to one of these four .ico files, representing one of the four possible states.  In a new revision of this application, each 4x4 dot in the icon needs to be able to receive any one of 16 possible states.  Rather than simply off (empty) or on (red), each 4x4 dot can be assigned one of 16 shades, ranging from empty (1), to dim red (8), to bright red(16).  It is clearly no longer feasable to create a .ico file to correspond to each possible state.  In this case, 16(dot 1) * 16 (dot 2)=256 .ico files would be necessary.  I need a way of dynamically generating VB icon objects by overlaying existing .ico files/icon objects or setting individual pixels in an icon object to specific colors within the VB code.  Also acceptable would be dynamically generating bitmaps as image objects and then transforming them into the necessary icon object type in the code.

I hope my question is clear.  I have tried to explain it as coherently as possible.

Thanks.
0
Comment
Question by:JeffN825
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Author Comment

by:JeffN825
ID: 12196632
More generally and simply, regardless of how it is accomplished, I need a practical way of using a single system tray icon to represent the states of two distinct "red lights", each of which can be represented with 16 degrees of "brightness".
0
 
LVL 18

Accepted Solution

by:
armoghan earned 2000 total points
ID: 12197867
0
 

Expert Comment

by:wayko621
ID: 12200440
maybe u can create a class that  makes a dot using the draw class and assign a rbg in it. then depending on the status of  what ever and change the density of the color or shade of the color
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12295387
Glad to help
Thanx for accepting
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

722 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