Control exceeded


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Control exceeded

  1. #1
    Join Date
    Feb 2005
    Posts
    36

    Angry 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

  2. #2
    Join Date
    Dec 2004
    Location
    México DF
    Posts
    127
    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

  3. #3
    Join Date
    Dec 2004
    Location
    Atlanta, Ga.
    Posts
    25
    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.

  4. #4
    Join Date
    Feb 2005
    Posts
    36
    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

  5. #5
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    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

  6. #6
    Join Date
    Feb 2005
    Posts
    36
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center