Hi all,
I have searched the faw's and found small snippets of code but not what i need.
I would like to place 1, 4, 9 or 16 picture boxes on a form dynamically. The number of pictureboxes is determined by a combo box value.
The problem is that I would like to add the controls dynamically at runtime and then position these pictures on the screen. The screen can have:
1 x 1 = 1
2 x 2 = 4
3 x 3 = 9
4 x 4 = 16
I do not want to use a control array, I was told that a control collection is much better.
Can someone help me, please ...
Thankyou in advance,
Marble
I have searched the faw's and found small snippets of code but not what i need.
I would like to place 1, 4, 9 or 16 picture boxes on a form dynamically. The number of pictureboxes is determined by a combo box value.
The problem is that I would like to add the controls dynamically at runtime and then position these pictures on the screen. The screen can have:
1 x 1 = 1
2 x 2 = 4
3 x 3 = 9
4 x 4 = 16
I do not want to use a control array, I was told that a control collection is much better.
Can someone help me, please ...
Thankyou in advance,
Marble