I'm stumped... As soon as an Image with PropertyItems is put into the ImageList, it appears to lose that data. Anyone know why this is happening and how to resolve it?
VB.NET:
[COLOR="SeaGreen"]' il is of type ImageList; img is of type Image.[/COLOR]
MsgBox(img.PropertyItems.Length) [COLOR="SeaGreen"]' Length = 68[/COLOR]
il.Images.Add(img)
MsgBox(il.Images(0).PropertyItems.Length) [COLOR="seagreen"]' Length = 0[/COLOR]
MsgBox(img.Clone.PropertyItems.Length) [COLOR="seagreen"]' Length = 68[/COLOR]
il.Images(0) = img.Clone
MsgBox(il.Images(0).PropertyItems.Length) [COLOR="seagreen"]' Length = 0[/COLOR]