i want to add some controls onto every picturebox in the contral array, how?

for example,

i want every picturebox in the array will show one or two buttons, how to do that?



thanks


cc
cc_2000_sgAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
tandreiConnect With a Mentor Commented:
At design time put a picture box say it pic(0). There, load another array of controls say but(0).
Define all your arrays of controls with a maximum dimension. Be careful, cause you cannot delete a position from a control array, if you use unload pic(i) it will remain a gap in the array.
 Use Load pic(i) for the container, and then Load but(i) for the components you want to load.
 To determin if a control is loaded or not use the VarType function (if, say pic(1) is loaded, then VarType(pic(1))<>9, so this is the condition
0
 
tppradeep18Commented:
Could you please give more details about the question. Are you using control array?
0
 
cc_2000_sgAuthor Commented:
yes,

i am using control array.

and i want all picture box in the array will contain other controls, such as some command buttons, some lines, even other control arrays.


cc
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
seganCommented:
Can you explain your problem in detail?!!!
0
 
km_saranCommented:
Will u pls try with more details...
0
 
rspahitzCommented:
Dynamically load the buttons, then set them into the desired containers:

' Load an OK and Cancel button into ten pictureboxes
for i=1 to 10
Load cmdOK(i)
Set cmdOK(i).Container = picSomething(i)
cmdOK(i).move 0,100
cmdOK(i).Visible=true

Load cmdCancel(i)
Set cmdCancel(i).Container = picSomething(i)
cmdCancel(i).move 0,500
cmdCancel(i).Visible=true
next i
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.