// this.imageIcones32 is my master list, I want to manage only one
// for 32 x 32
ImageList imageNew32
= new ImageList
();imageNew32
.ImageSize = new Size
(32,
32);
for (int i = 0; i < this.imageIcones32.Images.Count; i++)
{
imageNew32.Images.Add(imageIcones32.Images[i]);
}
this.btnRegen.ImageList = imageNew32;
this.btnRegenAll.ImageList = imageNew32;
this.btnRegen.ImageIndex = 1;
this.btnRegenAll.ImageIndex = 2;
//for 16x16
ImageList imageNew16
= new ImageList
();imageNew32
.ImageSize = new Size
(16,
16);
for (int i = 0; i < this.imageIcones32.Images.Count; i++)
{
imageNew16.Images.Add(imageIcones32.Images[i]);
}
this.btnRegen.ImageList = imageNew16;
this.btnRegenAll.ImageList = imageNew16;
this.btnRegen.ImageIndex = 1;
this.btnRegenAll.ImageIndex = 2;