Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. TabControl VB

TabControl VB

Scheduled Pinned Locked Moved Visual Basic
performancehelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _anil_
    wrote on last edited by
    #1

    Is there any limit to the maximum number of tab that can be added to TabStrip Controlin VB. In my application after 254 tab it give memory error. I am not able to find nay documentation specifying the maximum count. If there is any maximum count and if can be increase in any way ?

    Regards Anil

    C 1 Reply Last reply
    0
    • _ _anil_

      Is there any limit to the maximum number of tab that can be added to TabStrip Controlin VB. In my application after 254 tab it give memory error. I am not able to find nay documentation specifying the maximum count. If there is any maximum count and if can be increase in any way ?

      Regards Anil

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I guess the real question is, why do you hate your users so much that you'd create such an awful UI. 254 tabs ? 255 is obviously #FF, it's the max value of a byte. So, it's a logical maximum value to have. And no, you can't change it without writing your own tab control.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      _ 1 Reply Last reply
      0
      • C Christian Graus

        I guess the real question is, why do you hate your users so much that you'd create such an awful UI. 254 tabs ? 255 is obviously #FF, it's the max value of a byte. So, it's a logical maximum value to have. And no, you can't change it without writing your own tab control.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        _ Offline
        _ Offline
        _anil_
        wrote on last edited by
        #3

        Yes I appreciate what you suggest. But some application can need it sometime :) In case of Excel, we should not able to add more than 255 sheet! No we can. I got the solution for the above question. Instead of using "Microsoft Common Dialog Control 6.0" I will use "Microsoft Forms 2.0 object Library" TabControl

        Regards Anil

        D 1 Reply Last reply
        0
        • _ _anil_

          Yes I appreciate what you suggest. But some application can need it sometime :) In case of Excel, we should not able to add more than 255 sheet! No we can. I got the solution for the above question. Instead of using "Microsoft Common Dialog Control 6.0" I will use "Microsoft Forms 2.0 object Library" TabControl

          Regards Anil

          D Offline
          D Offline
          darkelv
          wrote on last edited by
          #4

          :laugh: Tabs inside Tab, then suddenly you can put 255 x 255 tag pages! I would hate to be the user, or in general vicinity of that application.... Or you can redesign the application by dynamically load the form/area that the user want to look at.

          _ 1 Reply Last reply
          0
          • D darkelv

            :laugh: Tabs inside Tab, then suddenly you can put 255 x 255 tag pages! I would hate to be the user, or in general vicinity of that application.... Or you can redesign the application by dynamically load the form/area that the user want to look at.

            _ Offline
            _ Offline
            _anil_
            wrote on last edited by
            #5

            darkelv wrote:

            Tabs inside Tab

            I did not get u ?... Any way I just told that Windows Common Control's tab control can not handle more than 255 but the other one can handle in thousands.. And of course the tabs added are dynamically. No body is going to give user interface with 255 tabs. But we can think of extreme conditions. If you are using VC interface I think it can open more than 255 files at a time in different tabs. But in practically no one would ever open... U are using lots of application that support more than 255 tabs ;P If you are reading this article in Firefox now it might able to open 255 tabs, :laugh:

            Regards Anil

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups