[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1008
  • Last Modified:

C# Prevent resize of panel in splitter

I have a splitter, the top panel lists a set of results. The bottom panel will show more details about the selected row as a Header and the Details . I have therefore placed another splitter scDetails in the bottom panel. The two scDetails panels each contain a label (which I will bind to data) and the labels are docked to their panel. The top scDetails panel is meant to be a title.
The first splitter is docked to the form.
Now when I resize the form and/or drag the Main splitter the individual scDetails panels resize. I do not want the distance between the text in scDetails.Panel1 and scDetails.Panel2 to increase.  
Which properties should I be setting?
0
Bradburt
Asked:
Bradburt
  • 4
1 Solution
 
sanket_1985Commented:
This should be done in Form_Resize event. afaik, properties will not help.
0
 
BradburtAuthor Commented:
I delete the second splitter and add the labels directly to the second panel, what a numpty.....
0
 
BradburtAuthor Commented:
OK
0
 
BradburtAuthor Commented:
OK
0
 
BradburtAuthor Commented:
Did not give enough details!
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.

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