split view help in VS 2005

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?
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
J

John Salerno

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top