protected void Shrink() { Program.AssertOnEventThread(); if (!shrunk) { shrunk = true; //First, clear all the anchors. Unanchor(); //Next, hide the progress bar and label ClearAction(); ActionStatusLabel.Hide(); ActionProgressBar.Hide(); ProgressSeparator.Hide(); //Finnally, shrink the window and put the anchors back MinimumSize = new Size(MinimumSize.Width, MinimumSize.Height - dx); ClientSize = new Size(ClientSize.Width, ClientSize.Height - dx); Reanchor(); } }