Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to resize the panel of splitcontainer in C# windowsapp.how can i do that?
Posted

1 solution

hi
There's no need to create your own form: SplitContainer has a property:FixedPanel Select the SplitContainer and in the Layout section look at FixedPanel Set it to the panel you want to stay constant in width or height (depending on the panel layout).

Programatically:

sc.FixedPanel = FixedPanel.Panel1; //Or Panel2
See:
http://stackoverflow.com/questions/2405143/splitcontainer-make-a-fixed-panel

http://stackoverflow.com/questions/1373596/fixed-panel-height-in-a-splitcontainer
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900