I tried loading an icon to an imageList using the following method:
Image cc = Bitmap.FromFile("C:\\myicon.ico");
imageList1.Images.Add(cc);
It works with some icons but generates an "Out of Memory" error with some
others. The strange thing is that when I try to add the icon manually to the
imageList, it adds it without problems!!
One of the icons that generates this problem is:
http://www.telegraph.co.uk/favicon.ico
Can anyone help?