I'm putting a lot of control in a FORM and finally exceed the limit. "Reached limit. Cannot create any more control for this form".
Can we increase the limit ?
From the design perpective, I probably do not prefer to move some of the controls ( except MENU controls ) to other FORM.
What could I do ?
I have many MENU controls, can anything be done to these controls ?
What is the best design ?
I believe that if you use control arrays, it counts one array as one control, so you can increase the number of controls.
If you have the time, you could create user controls for groups of related controls you need and then place the user control containing these controls on the form you're reaching the limit on.
There is no controls in my FORM that is closely related that would make sense to group it into arrays. Those that are repeated or closely related are already grouped into arrays.
We could force those unrelated control into array, but would it defeat the purpose of WYSIWYG in the "View Object" mode.
Any way, thanks for the input.
Could you give me more specific on what you mean ?
I have many MENU control. I would prefer to work on that if there is ways to get it out to other form. But, I need to have those appear on the current form ( at least looks like it appears on current form ). Any suggestion ?
Menus are not really WYSIWYG in VB....
You can put all 'main' menus in an array, and all the subitems of the same menu in another array. Somethink like:
BTW more than 255 controls in the same form... don't you think that will confuse the user (and make the documentation impossible?)
I guess that's the only way.
The only drawback is that in the code that handling the MENU events, instead of seeing a more meaningful name, now all are the same name. But this is acceptable, since there is only one EVENT per MENU control.
I admit that this FORM is pretty complex, but it's a user requirement.
Thanks again for the input.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center