CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Changing a forms controls limit??

  1. #1
    Join Date
    Jul 2002

    Unhappy Changing a forms controls limit??

    I am working on a big vb project, and am using ss tabs, which is great since I can do multiple things on one form.
    However all of a sudden I go to add anything from a check box to to a list and I get this:
    "Reached Limit: Cannot create anymore controls for this form"
    Now what I need to know is what is the controls limit, and if I can change this how can I change it?
    Any help is greatly appreciated, Thank You!

  2. #2
    Join Date
    Jun 2001
    MO, USA
    The only way you can add more is to use control arrays. Any number of labels/textboxes etc. in control arrays = 1 control. I think the limit is 255 controls.

  3. #3
    Join Date
    May 2002
    Colombo,Sri Lanka
    Msdn Says

    Reached limit: cannot create any more controls on this form (Error 345)

    No more than 255 individual controls are allowed for each form. This error has the following cause and solution:

    At design time you tried to add a control to a form that resulted in a total of 256 individual controls for the form (with the form itself counting as one control).
    Delete one or more controls from the form or redefine one or more of your controls as part of a control array.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)