Results 1 to 2 of 2

Thread: Controls Collection

  1. #1

    Thread Starter
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    Is it possible to order the collection of controls on a form.

    For example, when using the following code, can I determine what order the control names will be displayed.

    Code:
    Dim objControl as Control
    
    For Each objControl in myForm.Controls
        MsgBox objControl.Name
    Next
    Any assistance would be greatly appreaciated.

    ------------------
    Ishamel
    [email protected]


  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Nope, but if you just want an Ordered List, Add the Names to a Listbox with the Sorted Property set to True.

    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


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