Results 1 to 2 of 2

Thread: Counting objects in run time

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455

    Counting objects in run time

    Dear VB users,

    How can I count all command buttons / labels / listboxes etc etc on the the form in run time?
    Can give someone code?

    Nice regards,

    Michelle

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    VB Code:
    1. Private Sub Command1_Click()
    2. MsgBox Controls.Count
    3.  
    4. End Sub

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