ImageList.Replace ? lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- RudieD · 2006-01-31 16:02 Hi Lazies, I have a little problem with the ImageList.Replace method. I have the following code : Code: [Select] Image1.Picture.BitMap.LoadFromFile(OpenPictureDialog1.FileName); Image1.Refresh; ImageList1.Replace(1,Image1.Picture.Bitmap,nil); After this has executed and I call   Code: [Select]ImageList1.GetBitMap(1,Image1.Picture.Bitmap); but it still returns the old bitmap and not the new one that I was hoping for. Does any one have a possible solution ? Thanks in advance ---------------------------------------------------------------------- RudieD · 2006-02-03 19:00 It seems like no one knows about this so have reported it as a bug (0001689). ---------------------------------------------------------------------- Anonymous · 2006-03-20 23:03 Dirty workaround for this bug is to first insert an image and afterwards removing the following item. e.g.    ImageList1.Insert(2, Bitmap, nil);    ImageList1.Delete(3);