No forms collection?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    No forms collection?

    I'm hoping beyond hope that there's some way of applying changes to forms at runtime without having to tediously add each control to a custom collection.

    What I want to do is disable all buttons with a tab index greater than a certain number. What I don't want to do is manually disable them. Neither do I want to add them to a collection in the form_load event-- after all, there's no reason that I should have to do such a tedious task if I don't have to (many, *many* buttons to add).

    Well, hope somebody knows.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Well there is a ControlCollecti on that your form uses to hold all controls.
    Couldn't you just cycle through that (recursively) and check the tabindex?

    Comment

    • Sick0Fant
      New Member
      • Feb 2008
      • 121

      #3
      All right, here's a slightly disappointing solution-- I put the buttons in different group boxes and disable the group boxes.

      Still, I'd like to do it the way I wanted to originally.

      Comment

      • Sick0Fant
        New Member
        • Feb 2008
        • 121

        #4
        Originally posted by Plater
        Well there is a ControlCollecti on that your form uses to hold all controls.
        Couldn't you just cycle through that (recursively) and check the tabindex?
        Well, that would be too easy. lol Sorry

        Comment

        Working...