我还创建了一个ImageList,它使用相同的键加载这些文件的缩略图。我已经将这个ImageList指定为ListView的"SmallImageList“属性。当我添加和删除文件时,我通过键从ListView.Items和ImageList.Images集合中添加和删除它们。// Add the images from an array of paths{
thumbnails_<e
我必须将ImageList中的图像添加到带有路径的资源文件中的按钮中。我试过下面的代码: private void AddMyImage()//assign image to imagelist//Assign the ImageList to the button control.button1.ImageList = img