Docking a panel to a splitter window

S

STom

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
 
B

Bob Powell [MVP]

S

STom

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

STom
Bob Powell said:
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
 

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