Solved

Incorrect Display of Windows XP Icons in VB.NET ImageLists and PictureBoxes

Posted on 2003-11-01
3
290 Views
Last Modified: 2008-03-06
Hello,

I'm very new to .NET and assume this is a fairly basic problem. I am trying to make use of Windows XP (32 bit) icons with drop shadows in my application throughout, adding them to ImageLists and PictureBoxes. Every time I add an icon to an ImageList or PictureBox, even if I have ColorDepth property to Depth32Bit, it picks up the 256 color version of the icon. If I provide an icon that has no 256 color version, it takes the XP icon but downmixes it to 256 colors and makes the drop-shadow thick black which looks awful. Adding a Windows XP icon as the application's main icon however works just fine. Surely a development environment released post-Windows XP must be able to handle Windows XP icons, what am I doing wrong?

Would be extremely grateful for any help offered.

-William
0
Comment
Question by:wwarby
[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
3 Comments
 
LVL 1

Author Comment

by:wwarby
ID: 9664644
Since posting, I've found one way round this problem which is to load the icon into the ImageList at runtime. This works as long as the application has a manifest file, but makes it difficult to manage toolbar buttons etc. at design time. I want to be able to add an image to an ImageList at design time and for it to import the 32 bit alpha-blended icon which I can then use in TreeViews, ListViews, Toolbars etc.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 10239640
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10300415
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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