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