Slide-out and Splitter

G

Guest

Two questions. First, what does MS recommend / offer for creating those
nifty slide-out dialogues (?) that Visual Studio has? Yes I'm talking about,
for example, the default behavior of the Toolbox, or Properties dialogues in
Visual Studio, which slide back and forth (Unless you select the push-pin).
I don't even know what that "sliding" control is called, no less how to put
one on my WinForm. Help?

Second question: what effectively is the difference between a SplitContainer
and a Splitter? Why choose one over the other?
 
S

Stoitcho Goutsev \(100\)

Mystagogue,

1. AFAIK that sliding feature is called "auto-hide". I personally don't know
if the winforms supports it out of the box.

2. Most often when programmers use splitters they put two panels separated
by a splitter and then add more controls to the panels. Because this is the
usual configuration MS decided to create it as a control - one panel
containing two other panels separated by a splitter. Nesting this controls
one can get any configuration one wants.

Whether using this control or the splitter control itself is up to you. If
you do complex splitting you'll end up creating split containers by
yourself, so why don't just use already created one; for simple splitting
you can save 3 panels if you use the simple Splitter control.
 

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