I have loaded several graphics into an imagelist. The dimensions of each graphic varies.
I have set imglist.imagesize to 120,120, but some of the graphics are 80,80 or 160,80 etc.
I use the imglist to load graphics into pictureboxes that are created at runtime. I wish to set the size of the picturebox based on the 'original' sizing of the graphic.
The problem appears to be that the dimensions are always 120,120.
Even if the item has physical dimensions of 80, 80 and I set the picturebox size to this, I get a 120,120 picture box.
I even tried setting the imglist.imagesize during runtime based on the physical dimensions to no avail
picBox.Size = New Size(imlRoom.Images(4).PhysicalDimension.Height, imlRoom.Images(4).PhysicalDimension.Width)
picBox.Image = imlRoom.Images(4)
How do I dimension and populate the picture box to show the original sizing. If there is another was beside imglist I am happy to go down another track, but the images need to be stored in the program. Thanks for any input.