-
Need help w/this control
I have a picture control that I am creating a new instance of (via an array) - for each new instance, I have a label that should show up on top of the picture with a number that shows the index number of the array - when I set the visible property of the first control, picture(0), to TRUE the label shows up just fine. Whenever I actually create a new instance of it through code though, the pic shows fine, but no label - here is what I have:
Code:
Public Sub newTable()
Dim Index As Integer
'Get the number of pics currently on the form
Index = picTableHorizontal().Count
'Create a new instance of the picture
Load picTableHorizontal(Index)
Load lblNums(Index)
DoEvents
picTableHorizontal(Index).Visible = True
picTableHorizontal(Index).MouseIcon = picHandOpen
End Sub
The label is contained inside the picture control - I have tried playing with the ZOrder property as well as the Visible property, but neither seem to do anything for the problem.....
Somebody pleeeease help!
-
Code:
set lblNums(Index).container=picTableHorizontal(Index)
The container property returns or sets which parent object a control is placed on
-
Thanks
Thanks so much - seems like the most simple solutions that give the most trouble...