32-bit icons

Posted on 2004-08-08
Medium Priority
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 .
Technology Partners: 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!


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 500 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 http://www.binarymission.co.uk/binarylistview.aspx which fixes this and a few other bugs.


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…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
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

752 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