
Please help me with toolbar and imagelist
Sorry I have asked the same question some time ago. I just found the only
reply to that post by Rocky Clark when I was searching the internet. Here is
the answer, it works well.
8<-----------------------
Subject: Re: Question on tool bar
Newsgroups: microsoft.public.vb.controls
View: Complete Thread (2 articles) | Original Format
Date: 2002-03-06 04:19:58 PST
A 256 color image cannot maintain it's own color table in an ImageList,
since these colors may not be compatable with other images in the ImageList,
so they are converted to use 16 color palettes. The way to avoid this is to
use True color images (which don't rely on a color table).
Quote:
> Hi
> I bind my toolbar to an imagelist, in which I have stored a number of 256
> color images.
> The tool bar shows the full color images on the buttons for the first run
of
> the program. If I run the program again, all images become 16 color. I
check
> the image list, the images changed there too.
> How can I maintain the full 256 color on my toolbar or this is an
impossible
> task?
> Please help.
> Gang Wei