|
-
March 27th, 2001, 05:12 PM
#1
Really Stupid Question
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
-
March 27th, 2001, 09:13 PM
#2
Re: Really Stupid Question
You missed the .Picture at the end
Picture1.Picture = ImageList1.ListImages(1).Picture
works fine.
-
March 28th, 2001, 08:37 AM
#3
Re: Really Stupid Question
I told you it was a really stupid Question.
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|