• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

Splitter below GroupBox?

I have a simple Windows Form I am experimenting with in order to understand Splitters.

1)  I opened a new project...Windows App.
2)  Dropped a panel on the form, set it to Anchor:  Top, Bottom, Left, Right.  
3)  Grew the panel beyond the size of the Form so that it will grow and shrink with the entire form.
4)  Set Dock to None for this Panel.
5)  Dropped a GroupBox on the Panel, grew it wider but not higher than the Form.  Set Dock to None
6)  Dropped a Splitter on the Panel, set Dock to Top.

The problem.  Splitter jumps to the top of the Panel, instead of the bottom of the GroupBox.  "Bring to Front" / "Send to Back" seem to have no effect.

Any suggestions on making this work with the controls currently on the form?
0
Tom Knowlton
Asked:
Tom Knowlton
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
If you want the splitter "below" the GroupBox then you need to first dock another Panel to the top of your first panel.

So you would have:

Panel1
+---------------------------------+
|+-------------------------------+|
||                                       ||
||                                       ||   <------ Panel2
||                                       ||
|+-------------------------------+|
|+-------------------------------+|
||                                       ||   <------ Splitter1
|+-------------------------------+|
|+-------------------------------+|
||                                       ||
||                                       ||   <------ Panel3
||                                       ||
|+-------------------------------+|
+---------------------------------+

Where Panel2 and Splitter1 and Dock set to Top and Panel3 has Dock set to Fill.

GroupBox1 should be inside Panel2.

Is that what you want?

If not, describe in more detail the desired layout...  =)
0
 
Tom KnowltonWeb developerAuthor Commented:
Thanks!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now