I forgot to tell you that you have to make space when you load them.
Dim leftPos As Integer, j As Integer
Dim buttonWidth As Integer
'Get the size and position of the first command button
leftPos = cmdBtn(0).Left 'this is the one you created at
' design time...
to create a control array called cmdBtn (you have to have one control button on the form at design time)
do this:
Dim j As Integer
For j = 1 to 9
Load cmdBtn(j)
Next j
I hope this helps.
Billie
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.