Shakir:
I owe you an apology. You are correct, you can affect the behavior of the
panels separated by a Splitter using SendToBack / BringToFront. The splitter
needs to know the "docking priority" to decide which control "owns" the
common edge to which the controls are docked. For some reason the "docking
priority" is the REVERSE of the z-order (depth) of the control on the design
surface. You control the z-order by using the SendToBack / BringToFront
buttons. Using BringToFront sets z-order to zero, which makes it the LOWEST
docking priority. Other controls with a higher z-order will squeeze the one
with the lowest z-order when the Splitter is moved.
Thanks for your help.
BBM
"Shakir Hussain" wrote:
You may have to play around a little bit with SendToBack button,
BringToFront button in the designer toolbar. Select a panel and change those
options.
Splitter will work even in design mode. You will able to resize panels using
splitter during design mode.
--
Shak
(Houston)
"BBM" <bb*@bbmcompany.com> wrote in message
news:2E**********************************@microsof t.com... I'm trying to set up a form with two panels divided by a Splitter control.
I can make the Splitter work in the situations described in the
documentation (Listbox or TreeView on left w/Dock set to Left, Panel on
right of form w/ Dock set to Fill, Splitter between them set w/ Dock set to
Left. Works as advertised.
But... if I change to have two panels on the form one on the left with
Dock set to Left, a panel on the right with Dock set to Fill, and a Splitter
w/ Dock set to Left then the form looks great when you run it, and you can
access the Splitter (the cursor changes to the "move Splitter" cursor) but I
CANNOT drag the Splitter (the panel on the left does not re-size). Is
there a setting I'm overlooking, or does the Splitter just not work between
two panels?
Thanks. Sorry if this isn't the right group to post to for WinForms
questions.