Changing ImageSize at runtyme - Lost of icon

  • Thread starter Thread starter SpaceMind
  • Start date Start date
S

SpaceMind

Hi, I´m using this code for changing the size property of an ImageList :
ImageList.ImageSize = new Size(32,32);

However , the Icon property just lost´s his data.

Before code:

ImageList.Images.Count == 0

After:

ImageList.Images.Count == 1

Anyone have an idea ???

PS: The image it´s an ICO with 16x16 and 32x32. It work´s if I change the
imageSize at design time.

Sorry about my poor english and Thanks !!! :=)
 
Back
Top