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:
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.....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
Somebody pleeeease help!




Reply With Quote