Icon problem

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

Bryan Dickerson

I have a set of icons that I used in a VB6 version of a program that I'm now
beginning to re-write in VB.Net (notice I said rewrite, not convert: I
really want to do it right this time...). Anywho, some of my icons are
8color, some are 16color and some are true color. VB.Net doesn't seem to
like my 16 and true color icons--I'm trying to use them in an imagelist for
toolbar icons. What am I not seeing?

TIA!
 
Bryan Dickerson said:
I have a set of icons that I used in a VB6 version of a program that
I'm now beginning to re-write in VB.Net (notice I said rewrite, not
convert: I really want to do it right this time...). Anywho, some of
my icons are 8color, some are 16color and some are true color. VB.Net
doesn't seem to like my 16 and true color icons--I'm trying to use them
in an imagelist for toolbar icons. What am I not seeing?

When you say "doesn't like them," what do you mean? Does it throw an
exception when you try to load them into the ImageList, or do they look
funny, or...?

Since you're combining image types in the ImageList, make sure the
ImageList's ColorDepth property is set high enough to cover all of them
(e.g. Depth32Bit). If you try to load a truecolor image into an ImageList
set to Depth4bit, it will indeed look bad.

Jeremy
 
I set the ImageList colordepth to "Depth32bit". Then when I select an icon
from the File Dialog, it tells me "Invalid Parameter used."
 
I was having the same problem. I ended up just saving the icons as
bitmaps and using them.

Jesse
 
Back
Top