Solved

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

Posted on 2003-11-01
3
285 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now