?
Solved

URGENT!!! ImageList Question URGENT!!!

Posted on 2003-02-20
3
Medium Priority
?
150 Views
Last Modified: 2010-04-07
I have an imagelist with several icons that I am trying to use with the xp_button user control (http://207.229.134.90/vbQuestion/xpb.ctl) unsuccessfully.

The control has a .picture property, but when I assign that property to the imagelist is returns the following error:

Invalid Use of Property (and the .picture is highlighted in the debugger)

The code I am using is:

xpButton(Index).picture = ImageList.listImages(Index).picture.

I will provide all of my points, 275!!! for a correct answer that solves this problem!
(I am reserving them up front in case I need to ask the question again tomorrow, since questions asked at night don't always get answered)

Thank you in advance,

Sammy
0
Comment
Question by:SammyWrench
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
marconovaro earned 1100 total points
ID: 7992616

Don't know anything about your control, but did you tried:

Set xpButton(Index).picture = ImageList.listImages(Index).picture

(with set)?
HTH
M.

0
 

Author Comment

by:SammyWrench
ID: 7993245
No, I didn't try that.  Yes, It did work.  

Thanks for your help, I was running out of time to figure that out.  As promised, a hefty sum of points.

Thanks again,

*
0
 
LVL 6

Expert Comment

by:marconovaro
ID: 8006663
I have to thank you ... for so many points for a little question like this... :)
M.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…
Suggested Courses

616 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