[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-04-26
6
Medium Priority
?
192 Views
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....

HELP!!!

To load I have tried

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

and

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

No luck....
0
Comment
Question by:ExtremeFitness
  • 2
4 Comments
 
LVL 2

Author Comment

by:ExtremeFitness
ID: 16544305
BTW: This is in VB6
0
 
LVL 2

Author Comment

by:ExtremeFitness
ID: 16544381
Got it -

Picture = ImageList.ListImages("Stop").Picture
0
 
LVL 86

Expert Comment

by:Mike Tomlinson
ID: 16544431
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.
0
 

Accepted Solution

by:
GranMod earned 0 total points
ID: 16933897
PAQed with points refunded (500)

GranMod
Community Support Moderator
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 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