I am working on a Windows form application. I am using Nuget DockPanel. Problem that I am facing is that it shows minimum dock panel height when I start my app. As shown in picture:

[Please click to see image](https://i.stack.imgur.com/ApBYp.png)
In Image the area with blue pen line is form size and the area with black pen line is Dock Panel area

I want to set some height for DockPanel on start, it works only when I resize with mouse. The height of Dock Panel and form in this panel should be same.

```
 public partial class MainForm: Form
 {
          public MainForm()
          {
             InitializeComponent();
             DockPanel footerDockPanel = new DockPanel();
             footerDockPanel.Dock = DockStyle.Bottom;
             this.Controls.Add(footerDockPanel);
             Errorform = new ErrorForm();
             Errorform.Show(footerDockPanel, DockState.DockBottom);
             InfoForm = new InformationForm();
             InfoForm.Show(footerDockPanel, DockState.DockBottom);
           }
 }
public partial class ErrorForm : DockContent
{
    public ErrorForm()
    {
        InitializeComponent();
    }
}

```

Error form and Information form have the same code.both are inherited to DockContent class