Results 1 to 3 of 3

Thread: Looping through controls in picturebox?

  1. #1

    Thread Starter
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577

    Looping through controls in picturebox?

    Hi,

    How can i loop through all the controls that are held in a picturebox?

    Ta

  2. #2
    Addicted Member Geoff Gunson's Avatar
    Join Date
    Jun 1999
    Posts
    241
    Hi

    Code:
    Dim Ctrl As Control
    
        For Each Ctrl In Picture1.Container
            MsgBox Ctrl.Name
        Next
    Note that you will also get the container itself ie picture1 or whatever

    HTH

    G

  3. #3

    Thread Starter
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    thanks

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