Results 1 to 2 of 2

Thread: controls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    Columbus, OH, USA
    Posts
    16

    Post

    How can I detect using vb:
    1/ how many forms in project (vb project)?
    2/ how many control, and name of each one, ate in each form?
    Thank you,
    Mohammed.

  2. #2
    Member
    Join Date
    Jan 2000
    Location
    Quantico, VA, USA
    Posts
    41

    Post

    With every project, there is a FORMS collection and on every form there is a CONTROLS collection, and in every user control there is a CONTROLS collection. These individual items can be accessed by either using a
    For Each...Next loop
    or
    For i = 0 to FORMS.Count (CONTROLS.Count)

    I hope this is what you were looking for.

    Chuck Sweet

    ------------------
    To err is human, but to apologize frequently is embarassing.

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