943,685 Members | Top Members by Rank

Ad:
Jun 17th, 2007
0

Control Arrays

Expand Post »
This is just a simple question. There are four command buttons in a control array. I want to write code for one of them that changes the same property in the same way for all of them. When I tried doing this with just a specific button (I entered the subscript) it gave me suggestions as it usually does, but when I didn't specify a subscript it only had four suggestions, none of which were properties that could be changed. How would you change the property of all of them at once?
Similar Threads
Reputation Points: 437
Solved Threads: 1
Posting Virtuoso
sk8ndestroy14 is offline Offline
1,851 posts
since Mar 2007
Jun 17th, 2007
1

Re: Control Arrays

Sorry this is not the answer you are looking for, but I am pretty sure you will need to put four lines of code, one for each button to change them.

Or use a loop ....
Reputation Points: 22
Solved Threads: 19
Posting Whiz
DenisOxon is offline Offline
345 posts
since Jan 2007
Jun 17th, 2007
0

Re: Control Arrays

Is there any way to use a For Next combination? Possibly with a variable as the index number? I'll try it. If not, then tell me how you would use a loop.
Reputation Points: 437
Solved Threads: 1
Posting Virtuoso
sk8ndestroy14 is offline Offline
1,851 posts
since Mar 2007
Jun 17th, 2007
0

Re: Control Arrays

Yeah sorry. I just realized the For Next is a loop. Lol. But yeah it works. Thanks for your help.
Reputation Points: 437
Solved Threads: 1
Posting Virtuoso
sk8ndestroy14 is offline Offline
1,851 posts
since Mar 2007
Jun 18th, 2007
0

Re: Control Arrays

Yeah sorry. I just realized the For Next is a loop. Lol. But yeah it works. Thanks for your help.
Exactly what I had in mind - glad to help and to hear it has worked.
Reputation Points: 22
Solved Threads: 19
Posting Whiz
DenisOxon is offline Offline
345 posts
since Jan 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Make a form unable(or get expired) after particular duration
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Everybody, please read this reply to Kali...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC