Posted 15 February 2018, 6:37 am EST
Hello,
Though, there is no direct way to do that, the following workaround using MinHeight, Visible properties and VisibleChanged event, can be used to meet your requirement:
Boolean flag = false;
private void c1SplitterPanel3_VisibleChanged(object sender, EventArgs e)
{
if(c1SplitterPanel3.Visible== false && !flag )
{
flag = true;
ShowHeader();
}
if (c1SplitterPanel3.Visible == false && flag)
{
flag = false;
Default();
}
}
public void ShowHeader()
{
c1SplitterPanel3.Visible = !c1SplitterPanel3.Visible;
c1SplitterPanel3.Height = c1SplitterPanel3.MinHeight = 25;
}
public void Default()
{
c1SplitterPanel3.Visible = !c1SplitterPanel3.Visible;
c1SplitterPanel3.Height = 90;
}
Thanks,
Ruchir Agarwal
C1Split_Header.zip
![]()