C# Prevent resize of panel in splitter

Posted on 2011-05-13
Last Modified: 2013-11-26
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?
Question by:Bradburt
    LVL 5

    Expert Comment

    This should be done in Form_Resize event. afaik, properties will not help.

    Accepted Solution

    I delete the second splitter and add the labels directly to the second panel, what a numpty.....

    Author Comment


    Author Comment


    Author Closing Comment

    Did not give enough details!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now