VB6.0 : Limits of control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wassup
    New Member
    • May 2007
    • 34

    #1

    VB6.0 : Limits of control

    Hi all,
    Why my vb prompt out this error: "Reach limit: cannot create any more controls for this form". Its that mean I can't add more control on it? Is there any way to exceed the limits?
    Thanks.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Originally posted by wassup
    Hi all,
    Why my vb prompt out this error: "Reach limit: cannot create any more controls for this form". Its that mean I can't add more control on it? Is there any way to exceed the limits?
    Thanks.
    I've never seen such an error, wassup...

    It sounds like you'll have to handle in the same manner proposed earlier when you need additional textboxes (Frame2, remember). If you have additional controls, provided you hadn't found a a way around the limit, you can add another Frame for the rest.

    Comment

    • wassup
      New Member
      • May 2007
      • 34

      #3
      Originally posted by Dököll
      I've never seen such an error, wassup...

      It sounds like you'll have to handle in the same manner proposed earlier when you need additional textboxes (Frame2, remember). If you have additional controls, provided you hadn't found a a way around the limit, you can add another Frame for the rest.
      I have total about 120 control in 1 form, include Frame. So when I want add another Frame at the same form and same total control then it will prompt out this error. You can try to add in and see, I think when you add untill 200 control like that or more then it will prompt out this error.

      Comment

      • Dököll
        Recognized Expert Top Contributor
        • Nov 2006
        • 2379

        #4
        Originally posted by wassup
        I have total about 120 control in 1 form, include Frame. So when I want add another Frame at the same form and same total control then it will prompt out this error. You can try to add in and see, I think when you add untill 200 control like that or more then it will prompt out this error.
        I have not tried this but your answer is yet again before you, add another form. How 'bout that?

        Comment

        • wassup
          New Member
          • May 2007
          • 34

          #5
          Originally posted by Dököll
          I have not tried this but your answer is yet again before you, add another form. How 'bout that?
          Sure can but I have my concern not to add another form, cause I will stuck on the source code there. Later I repost my last topic and I hope you can solve for me, I am greatly appreciate of your help.

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            This may be of interest...
            Originally posted by VB Doco
            Total Number of Controls
            The maximum number of controls allowed on a single form depends on the type of controls used and available system resources. However, there is a fixed limit of 254 control names per form. A control array counts only once toward this limit because all the controls in the array share a single control name.

            The limit on control array indexes is 0 to 32,767 on all versions.

            If you layer controls on top of each other, such as using several frame controls within other frames, Visual Basic will generally accept no more than 25 levels of nested controls.

            Comment

            • Dököll
              Recognized Expert Top Contributor
              • Nov 2006
              • 2379

              #7
              Will wait for to see your code, pin point the problem.

              Get a load of Killer's post, looks like you can have your cake and eat too with tis one.

              Still post your code for all to see:-)
              Last edited by Dököll; May 25 '07, 12:48 AM. Reason: Added remark

              Comment

              Working...