This is a migrated thread and some comments may be shown as answers.

How to fill the pane with contained control, and use scroll bars of the contained control?

1 Answer 43 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 15 Sep 2008, 01:35 AM
Hello,

I have a treeview control contained inside a pane in a nested splitter. When the treeview is populated, it's height exceeds the height of it's containing pane.
As a result, the pane adds vertical scroll bars, even though I specify all panes Scrolling to None. When I use the arrow keys to move up and down the tree, the selected nodes scroll out of view.

How can I make the treeview fill the entire viewport of the pane, and allow only the scroll bars from the tree view?  I would like the treeview to resize as I resize the pane.

Thank you,
Alex

1 Answer, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 15 Sep 2008, 04:23 PM
Of course this was as simple as setting the contained tree's height to 100% - I apologize for the trivial question.

Alex
Tags
Splitter
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Share this question
or