Load an picture into a picture box.  Big Bux, no whammies...

Posted on 2006-04-26
Last Modified: 2010-05-01
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....


To load I have tried

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


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

No luck....
Question by:ExtremeFitness
    LVL 2

    Author Comment

    BTW: This is in VB6
    LVL 2

    Author Comment

    Got it -

    Picture = ImageList.ListImages("Stop").Picture
    LVL 85

    Expert Comment

    by: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.

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Introduction This article makes the case for using two modules in your VBA/VB6 applications to provide both case-sensitive and case-insensitive text comparison operations.  Recently, I solved an EE question using the LIKE function.  In order for th…
    Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now