Solved

Windows

Posted on 2000-04-11
2
163 Views
Last Modified: 2010-05-02
I am writeing a program for AOL and there is two icons called _AOL_ICON and how do I loop trhough all the incons in a form??? so say the form name is chatroom% how would I looop through all Icons?? Thanks
0
Comment
Question by:nafa2221
2 Comments
 
LVL 1

Accepted Solution

by:
Gotcha007 earned 50 total points
ID: 2705436
for that you should create a array of icons (create a image control and copy it and then paste it , response yes at the question for the array).
you have 2 Image control with the same name.
for accessing them (imagine that the image control is called image1), type that :
image1(0) for the first and image(1) for the second.



0
 
LVL 3

Expert Comment

by:Maxim10553
ID: 2705445
you could always go into into the form object at run time, go into the controls collection, then loop through the items collection searching by the name property and check to find the icons on the form. They will be listed in this collection.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

821 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