Try to set the maximum size for the window to be secure desktop area . You will need to include both references:
using System.Drawing;
using System.Windows.Forms;
And put these procedures at the time of loading Form
:
Rectangle workingAreaRect = Screen.WorkingArea;
Size workingAreaSize = workingAreaRect.Size;
Form1.MaximumSize = workingAreaSize;
Form1.TopMost = false; // faz com que o Form não seja exibido na frente da Taskbar
These methods above will cause the Form
size to extend to the monitor safe area