Click to See Complete Forum and Search --> : Really Stupid Question


John G Duffy
March 27th, 2001, 04:12 PM
The Help for the ImageList control says it can be used as a source for the PictureBox control, but I will be damned if I can figure out how to put a picture in the PictureBox from an ImageList.
The Help also discusses the .Overlay method, along with a sample, which works. When I try this:

Picture1.Picture = ImageList1.ListImages(1)
'or this
set Picture1.Picture = ImageList1.ListImages(1)



it gives me a type mismatch. The Imagelist does have valid images in it

John G

shree
March 27th, 2001, 08:13 PM
You missed the .Picture at the end

Picture1.Picture = ImageList1.ListImages(1).Picture

works fine.

John G Duffy
March 28th, 2001, 07:37 AM
I told you it was a really stupid Question.

John G