I have a Winform that has a splitter control, set vertically in the middle
of my page.

I have a panel over on the right hand side that has edit controls on it.
What I want to do is either attach the panel to the right hand side of the
splitter or make it so that when I move the splitter to the right, the
expanded left hand side window covers up the panel.

What type of property would I need to set within my panel to get it to dock
or be sizable with the splitter.?

STom

Re: Docking a panel to a splitter window by Bob

Bob
Mon Dec 15 08:58:42 CST 2003

Place some object on the left of the page, dock it left,

Place the splitter, it will automatically dock left,

Place the panel in the space remaining, select Dock.Fill

--
Bob Powell [MVP]
C#, System.Drawing

The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

"STom" <stombiztalker@hotmail.com> wrote in message
news:Os4fLsxwDHA.3116@TK2MSFTNGP11.phx.gbl...
> I have a Winform that has a splitter control, set vertically in the middle
> of my page.
>
> I have a panel over on the right hand side that has edit controls on it.
> What I want to do is either attach the panel to the right hand side of the
> splitter or make it so that when I move the splitter to the right, the
> expanded left hand side window covers up the panel.
>
> What type of property would I need to set within my panel to get it to
dock
> or be sizable with the splitter.?
>
> STom
>
>



Re: Docking a panel to a splitter window by STom

STom
Mon Dec 15 09:07:12 CST 2003

Dock.fill....thats the ticket!! Thanks.

STom
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:eWGoyvxwDHA.2556@TK2MSFTNGP10.phx.gbl...
> Place some object on the left of the page, dock it left,
>
> Place the splitter, it will automatically dock left,
>
> Place the panel in the space remaining, select Dock.Fill
>
> --
> Bob Powell [MVP]
> C#, System.Drawing
>
> The November edition of Well Formed is now available.
> Learn how to create Shell Extensions in managed code.
> http://www.bobpowell.net/currentissue.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/gdiplus_faq.htm
>
> Read my Blog at http://bobpowelldotnet.blogspot.com
>
> "STom" <stombiztalker@hotmail.com> wrote in message
> news:Os4fLsxwDHA.3116@TK2MSFTNGP11.phx.gbl...
> > I have a Winform that has a splitter control, set vertically in the
middle
> > of my page.
> >
> > I have a panel over on the right hand side that has edit controls on it.
> > What I want to do is either attach the panel to the right hand side of
the
> > splitter or make it so that when I move the splitter to the right, the
> > expanded left hand side window covers up the panel.
> >
> > What type of property would I need to set within my panel to get it to
> dock
> > or be sizable with the splitter.?
> >
> > STom
> >
> >
>
>