This event occurs when the minimum allowed size for the container was changed. The form on which this container is placed should be sized to display the entire container
Here is a sample of how this event should be handled. It assumes that _dockContainer1 is docked on the form with DockStyle.Fill.
In this example is computed the difference between the dock container width and height and then add these differences to the minimum size of the form. In this way, when the form has minimum size, the container will have ensured its required minimum size:private void OnDockContainerMinSizeChanged (object sender, EventArgs e)
{
int deltaX = Width - _dockContainer1.Width;
int deltaY = Height - _dockContainer1.Height;
MinimumSize = new Size (
_dockContainer1.MinimumSize.Width + deltaX,
_dockContainer1.MinimumSize.Height + deltaY);
}
DockContainer Class | Crom.Controls Namespace