ImageList myImageList = new ImageList(); myImageList.Images.Add(Image.FromFile("image1.png")); myImageList.Images.Add(Image.FromFile("image2.png"));
myListView.SmallImageList = myImageList;
myButton.Image = myImageList.Images[0];ImageList is part of the System.Windows.Forms namespace, which belongs to the .NET Framework Class Library.