Dock?

  • Thread starter Thread starter C# Learner
  • Start date Start date
C

C# Learner

Am I doing something wrong here?

I have a form with a TreeView whose Dock property is set to Fill so that
it fills the client area of the form. This form also has a Toolbar and
StatusBar.

Now, the TreeView takes up all the space of the form, and it doesn't
take in regard the space taken by the ToolBar and StatusBar. The effect
is that the top and bottom of the TreeView is hidden behind the ToolBar
and StatusBar.

Here's a screenshot so you can see what I mean -
http://www34.brinkster.com/yahshell/ss.png

TIA
 
Right click on the control and select "Bring To Front". The order of the
controls in the layout is based on their z-order.
 
* C# Learner said:
I have a form with a TreeView whose Dock property is set to Fill so
that it fills the client area of the form. This form also has a
Toolbar and StatusBar.

Now, the TreeView takes up all the space of the form, and it doesn't
take in regard the space taken by the ToolBar and StatusBar. The
effect is that the top and bottom of the TreeView is hidden behind the
ToolBar and StatusBar.

Select toolbar/statusbar, then choose "Bring to Front" from its context
menu.
 
Back
Top