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. .NET (Core and Framework)
  4. split Container scroll bars

split Container scroll bars

Scheduled Pinned Locked Moved .NET (Core and Framework)
questiondockerdata-structures
4 Posts 2 Posters 1 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.
  • S Offline
    S Offline
    Surya Ayyagari
    wrote on last edited by
    #1

    I have a split container on the form. On the left panel and right panel I have tree views. I have set the tree view scroll bars to false. When the treeviews increase in size, tthe panels doesn't show any scroll bar even though autoscroll property of the panels are set to true. How can I show the scroll bars of the panel? I need to synchronise both the scroll bars later. Regards Surya

    H 1 Reply Last reply
    0
    • S Surya Ayyagari

      I have a split container on the form. On the left panel and right panel I have tree views. I have set the tree view scroll bars to false. When the treeviews increase in size, tthe panels doesn't show any scroll bar even though autoscroll property of the panels are set to true. How can I show the scroll bars of the panel? I need to synchronise both the scroll bars later. Regards Surya

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      If the Dock property of your TreeViews is set to anything other than DockStyle.None the scrollbars won't show. The TreeViews must extend beyond the bounds of the panels for this to happen. If this is not the case, then please ignore this post. :)

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      S 1 Reply Last reply
      0
      • H Henry Minute

        If the Dock property of your TreeViews is set to anything other than DockStyle.None the scrollbars won't show. The TreeViews must extend beyond the bounds of the panels for this to happen. If this is not the case, then please ignore this post. :)

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        S Offline
        S Offline
        Surya Ayyagari
        wrote on last edited by
        #3

        Thanks Henry for the reply. But I have set DockStyle.Fill for the treeviews. I want to show the scroll bars of the panels. I mean how to extend treeview beyond the bounds of the panel? Regards Surya

        H 1 Reply Last reply
        0
        • S Surya Ayyagari

          Thanks Henry for the reply. But I have set DockStyle.Fill for the treeviews. I want to show the scroll bars of the panels. I mean how to extend treeview beyond the bounds of the panel? Regards Surya

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Surya Ayyagari wrote:

          But I have set DockStyle.Fill for the treeviews

          That is the problem. DockStyle.Fill 'does exactly what it says on the tin' it will only ever allow the TreeView to exactly fill its containing control. It cannot grow to be larger and therefore the scrollbars are not needed. As I said in my previous post, the TreeView must be able to extend beyond the bounds of the panel for the ScrollBars to show up. You might try setting Dockstyle.Top which, on reflection, should allow them to grow vertically and thence trigger the ScrollBar

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          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