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 !!! :=)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top