Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Notify icon equivalent
posted

Hi, I was just wondering if I can use the desktop alert or similar Infragistcs component in order to support semi-transparent icons for the notifyicon (System.Windows.Forms.NotifyIcon).

I'm not sure the desktop alert control fully replaces the Microsoft notifyicon as I don't see a mechanism for a permanent icon in the task bar and also a right click context menu.

Is this possible? I simply want the features of the Microsoft  notifyicon with support for a semi-transparent icon.

Thank you!

  • 1833
    Verified Answer
    Offline posted

    I've managed to figure this one out! I was going off on a tangent again :P
     
    The win32 API will ONLY support icon files. However, it seems that I had over looked the fact that even .ico files can have alpha levels and as such may be semi-transparent.

    To create a semi transparent icon file from a .png, I used the free command line utility 'Image Magick'. With the following...

    "convert -resize 16x16 [source].png [out].ico"

    Remember that ImageLists default to low quality, so this could potentially cause you issues. I simply loaded my icon from file.

    Don't bother with applications that create .ico files, they suck, and usually cost money. Good old image magick (http://www.imagemagick.org)