split Container scroll bars
-
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
-
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
If the
Dock
property of yourTreeView
s is set to anything other thanDockStyle.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.”
-
If the
Dock
property of yourTreeView
s is set to anything other thanDockStyle.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.”
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
-
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
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 theTreeView
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, theTreeView
must be able to extend beyond the bounds of the panel for theScrollBar
s to show up. You might try settingDockstyle.Top
which, on reflection, should allow them to grow vertically and thence trigger theScrollBar
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.”