ExtremeFitness
asked on
Load an picture into a picture box. Big Bux, no whammies...
I have a picture box (picture) and a Imagelist (imagelist) with jpg's and bmps in it...
I cannot get the pictue to load into the box... it tells me "" Runtime error 438, object doesnt support this property or method....
HELP!!!
To load I have tried
Set Picture.Picture = ImageList.ListImages(6).Pi cture
and
Picture.Picture = ImageList.ListImages(6).Pi cture
No luck....
I cannot get the pictue to load into the box... it tells me "" Runtime error 438, object doesnt support this property or method....
HELP!!!
To load I have tried
Set Picture.Picture = ImageList.ListImages(6).Pi
and
Picture.Picture = ImageList.ListImages(6).Pi
No luck....
ASKER
Got it -
Picture = ImageList.ListImages("Stop ").Picture
Picture = ImageList.ListImages("Stop
Your syntax worked fine for me:
Picture1.Picture = ImageList1.ListImages(6).P icture
Note that I have "Picture1" and "ImageList1"...make sure you have the correct names of your controls in your code.
Picture1.Picture = ImageList1.ListImages(6).P
Note that I have "Picture1" and "ImageList1"...make sure you have the correct names of your controls in your code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER