Hocam aşağıdaki gibi imagelist sınıfını oluşturup kullanmaya çalışıyorum. ama ben entity framework kullanıyorum ve verilerimi List<> olarak nesle ile gönderiyorum. Aşağıdaki imagelist kodum var. Images.Add("burayı nasıl işlemeliyim")
ImageList menuImageList = new ImageList();
Graphics g = Graphics.FromHwnd(this.Handle);
// Ben verilerimi menudal.GetAll() ile gösteriyorum. Bu şekilde de hata veriyor.
menuImageList.Images.Add(menuDal.GetAll());
for (int count = 0; count < menuImageList.Images.Count; count++)
{
menuImageList.Draw(g, new Point(20, 20), count);
// Paint the form and wait to load the image
Application.DoEvents();
System.Threading.Thread.Sleep(1000);
}