views:

2730

answers:

3
+4  A: 

Be sure to set ImageList.ImageSize to 48 x 48 too.

HTH, Kent

Kent Boogaart
I have that both set in the designer tool and then manually set in code:this.m_LargeImageList.ImageSize = new System.Drawing.Size(48, 48);And still no differnece :(
Balk
Re-add images after setting that field. The images get stored in the resx if I recall.
Nick
+1  A: 

I'm not sure if its the problem in this specific case, but Microsoft support for the PNG format is generally poor. Try adding the images in .bmp format and they should display fine.

Matt Howells
but .bmp has no transparency, right?
Cornel
+1  A: 

When adding a .PNG Icon format size the editor tends to pick the first entry size in that file, so it picks up the 16x16 entry and it's stretching that out. That's why you see the 16x16 in the properties there. As suggested, the support for PNG is poor, I'm often found myself rolling over to another format as well to avoid this.

You can open the file in Paint.Net if you need a free editor or something more fully featured like Photoshop or Fireworks and extract the exact size you want.

Nick Craver
PNG does not (as far as I know and could find on the internet) support more than one image size per file. So this answer is not correct (please feel free to prove me wrong though and I'll remove my -1 vote)
Isak Savo
I believe you're thinking of ICO... :-(
MiffTheFox
To clarify, Icons used in Vista and Up are PNG compressed in an ICO container, the editor picks up the wrong image stored inside the ICO, which is a PNG compressed image (chosen because it supports loss-less compression and alpha). So yes you are adding a .ico file, but it's a png image you're looking at. And, due to the compression, isn't identified correctly by all things...as in this case, the wrong (default: minimal-> 16x16) size is used, resulting in a stretched/blurred image.
Nick Craver