Solved

Windows

Posted on 2000-04-11
2
162 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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 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…
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…

772 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