79767686

Date: 2025-09-17 18:31:49
Score: 0.5
Natty:
Report link

if use WorkingArea.Height it will automatically adjust the height depending on whether task bar is visible or not.

this.Height = screen.WorkingArea.Height;

if you just want the height of the taskbar:

int taskBarHeight = screen.Bounds.Height - screen.WorkingArea.Height
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Richard Waddell