split view help in VS 2005

  • Thread starter Thread starter John Salerno
  • Start date Start date
J

John Salerno

I followed some simple steps in a magazine to create a Form with a split
view, but it doesn't look right. First I added a ListView control and
docked it to the left, then I added the Splitter control, then I added a
TreeView and docked it with fill.

When I run the window, it shows a big grey area in the center of the
form and I can resize the right edge of it. How can I make it so that
there is only a single line that can be used to resize the other two
controls?
 
John,

In .NET 2.0, there is a much easier way to handle split controls. There
is a SplitContainer control in the toolbox which has two sub-panels that you
can place your controls in (and fill the area with them, if you wish). It
will handle all of the split management for you, and is much easier to set
up.

Hope this helps.
 
Nicholas said:
John,

In .NET 2.0, there is a much easier way to handle split controls. There
is a SplitContainer control in the toolbox which has two sub-panels that you
can place your controls in (and fill the area with them, if you wish). It
will handle all of the split management for you, and is much easier to set
up.

Hope this helps.

This is what I'm using, but it doesn't look right. Perhaps the
instructions I followed were incorrect, but what results is a panel on
the left, one on the right, and big area in the middle that is part of
the split container but doesn't do anything. There isn't just a single
bar to move left and right.
 
Back
Top