We have a record management system written in VB6, and we have a user interface guide that says that each record should have only one data entry form associated with it (i.e., it cannot open other windows). As a result of this policy, one of the more complex record types in our system now has a form with a total of 659 individual controls. We came across a limitation of 256 named controls, and then we converted many controls to manage arrays over time. We recently squeezed a room for 5 or 6 new controls, going through the whole form and transforming the few remaining standalone controls for managing arrays.
This is one time I would like to break the rules, but it will require quite a lot of refactoring to use a multi-form approach.
In any case, you can put at least 659 controls on the form, but I could never find out what the true absolute limit is (and I'm not sure what I want).
Mike spross
source share