32-bit icons

Posted on 2004-08-08
Last Modified: 2010-04-23
Does anyone know how to get these working? I need them in a toolbar control and a listview control (with View=Details) .. Whenever I try adding them, any areas with alpha show up as pure black. I've tried a manifest file, but that doesn't seem to be working. I prefer no external controls, but if that's the only way, then I guess I have no choice.
Question by:UrbanPuppet
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
LVL 37

Expert Comment

ID: 11748551

Author Comment

ID: 11748984
That's for buttons, but how about toolbars and listviews? I don't see a paint event for them.
LVL 37

Expert Comment

ID: 11749004
"When you set the Image property of a Microsoft Windows Form (Winform) control to a 32-bit alpha-blended icon, the icon that is displayed on the control loses the alpha channel. The transparent regions of the icon are rendered as solid. This behavior occurs at design time and at run time for the Winform control. "

only the example is a button .
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.


Expert Comment

ID: 11751171
No paint event? try this:

LVL 27

Expert Comment

ID: 11754455
Try changing your transparent properties to Black in your listview control

Author Comment

ID: 11759518
gregoryyoung, I realize it's an example, but it's an example work-around and I need one for other controls.. It has to be possible to do this..
daniellus83, just tried, those don't help show the alpha.
planocz, that would (if anything) just hide it, I want the alpha to show..

Thanks for even clicking/responding in the first place guys, but I'm still looking for a definite answer
LVL 37

Accepted Solution

gregoryyoung earned 125 total points
ID: 11759567
I believe the workaround is fairly clear, you need to override the entire paint method to call DrawIcon yourself, this sounds a whole lot easier than it is .... I would recommend just grabbing this which fixes this and a few other bugs.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

724 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