|
-
Jan 30th, 2001, 09:38 AM
#1
Thread Starter
Addicted Member
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!
Last edited by finn0013; Jan 30th, 2001 at 09:43 AM.
-
Jan 30th, 2001, 09:49 AM
#2
transcendental analytic
Code:
set lblNums(Index).container=picTableHorizontal(Index)
The container property returns or sets which parent object a control is placed on
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 30th, 2001, 10:04 AM
#3
Thread Starter
Addicted Member
Thanks
Thanks so much - seems like the most simple solutions that give the most trouble...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|