Link to home
Start Free TrialLog in
Avatar of mrvithan
mrvithan

asked on

How can i create a array to handle controls?

accoding to my last question(https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=10239600 ) , i want to create a array to handle controls. how  i can do that, such as picturebox ontrol
Avatar of mrvithan
mrvithan

ASKER

Edited text of question.
Put a picture box on a form
Name it pic(0)

Now at runtime you can load more picture boxes using
Load pic(n) where n is the index in your control array

(Unload pic(n) unload picture box n)

To make a control an array, just give it an index (of 0 or whatever)
what corvinder is trying to say is

create a picturebox on your form
call it Pic
set it's index to 0

etc...
ASKER CERTIFIED SOLUTION
Avatar of TT
TT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
collection control ?