Dynamically resize splitContainer

I have a splitContainter control with two horizontal panels. The top panel contains a patient identification banner, and the bottom panel stores the corresponding patient documents and tree view.

The UK NIH patientBanner element, and if you click on the button inside the control (double down arrow in the lower right corner), it will expand to display additional information about the patient's address, phone, email and allergies.

It extends pretty well, but I don’t know how to configure splitContainer so that the top panel displays all the information.

alt text http://www.intellicure.com/files/DocumentManagerScreenShot.jpg

+3
source share
2

. , , , , .

splitContainer.IsSplitterFixed = false.

splitContainer.DataBindings.Add("Height", <yourcontrol>, "Height")
+3

. SplitterDistance. , .

public DataTable GridView
    {
        get { return dataGridView1.DataSource as DataTable; }
        set { dataGridView1.DataSource = value;
            splitContainer1.SplitterDistance = dataGridView1.Width;
        }
    }
+2

Source: https://habr.com/ru/post/1714794/


All Articles