Link to home
Start Free TrialLog in
Avatar of ExtremeFitness
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).Picture

and

Picture.Picture = ImageList.ListImages(6).Picture

No luck....
Avatar of ExtremeFitness
ExtremeFitness

ASKER

BTW: This is in VB6
Got it -

Picture = ImageList.ListImages("Stop").Picture
Avatar of Mike Tomlinson
Your syntax worked fine for me:

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

Note that I have "Picture1" and "ImageList1"...make sure you have the correct names of your controls in your code.
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial