Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WinForm
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 3:42am
Edited 20-Feb-13 3:46am
v2

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
teamcoherent at 25-Feb-13 5:30am
   
Hi Marcus,
 
Please can you tel me the way to do or implement above solution...
teamcoherent at 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.
 
-Vinayak

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

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 DamithSL 165
4 Tomas Takac 144
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2014
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