-
Control exceeded
Hi,
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 ?
Thanks
-
Hi,
I believe that if you use control arrays, it counts one array as one control, so you can increase the number of controls.
HTH
-
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.
-
Hi Mula,
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.
Hi Cody3,
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 ?
Thanks
-
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:
mainMenu(0)
->sub0(0)
->sub0(1)
->...
-->subsub0(0)
-->subsub0(1)
mainMenu(1)
->sub1(0)
->sub1(1)
....
BTW more than 255 controls in the same form... don't you think that will confuse the user (and make the documentation impossible?)
Marco
-
Hi Marco,
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks