Results 1 to 3 of 3

Thread: picture control

  1. #1

    Thread Starter
    Addicted Member finn0013's Avatar
    Join Date
    Jan 2001
    Location
    Charleston, SC
    Posts
    222

    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.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3

    Thread Starter
    Addicted Member finn0013's Avatar
    Join Date
    Jan 2001
    Location
    Charleston, SC
    Posts
    222

    Talking 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
  •  



Click Here to Expand Forum to Full Width