Slide-out and Splitter

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top