?
Solved

URGENT!!! ImageList Question URGENT!!!

Posted on 2003-02-20
3
Medium Priority
?
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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 Month11 days, 11 hours left to enroll

752 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