Click here to Skip to main content
13,047,131 members (60,181 online)
Rate this:
Please Sign up or sign in to vote.
See more: (untagged)
Hi all,

I am using splitter in form which contain two different information using group boxes.
Splitter.Pane11 contains groupbox1 and second Panle2 splitter.panel2 contains another groupbox2.
both group box contains other controls like text box, grid and button.etc..

If we maximize or re-size the form or splitter panels I am not able to re size other controls size depending on group or Splitter size.I checked with anchoring property but I am not getting scrolling property in maximize mode.

And also if user double clicks on Splitter then it will expand the Splitter.Pane11 and again double click collapse the Splitter.Pane11.

Please help me to solve this problem.

Thanks in advance.
Posted 20-Feb-13 2:42am
Updated 20-Feb-13 2:46am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Whether using anchoring or docking properties, in order to resize the controls contained in the controls, those controls also need to either have their anchoring/docking properties set, or you need to override the OnResize event for the affected container and manually adjust the sizes and positions of your controls in that method. I would suggest that most layouts can be achieved using proper setup of the anchor and docking properties. Manually adjusting stuff in the method override can be very problematic and difficult from a maintenance standpoint.
teamcoherent 25-Feb-13 5:30am
Hi Marcus,

Please can you tel me the way to do or implement above solution...
teamcoherent 25-Feb-13 6:55am
Hi Marcus,

Thanks for reply, I tried with your solution but still I am not getting correct output.

Can you explain more to implement above solution to achieve requirement.

Double clicking expanding and collapsing working fine but user maximize the form I am not able to maximize controls which are present in splitter panel2(group box 2 controls).

Please waiting for your valuable feedback.

Note : Splitter panel1 contains groupbox1 and splitter panel2 contains groupbox2 both contains other controls.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100