System.Windows.Forms.Screen screen = System.Windows.Forms.Screen.FromRectangle(new System.Drawing.Rectangle((int)this.Left, (int)this.Top, (int)this.Width, (int)this.Height)); if (!screen.Primary) { this.MaxHeight = screen.WorkingArea.Height + 2; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)