Height of Taskbar in a Window Forms Application using VB.net

My top main form is maximized to the screen size which makes the bottom of my form below the bottom taskbar. I need to decrease the height of my form by the height of the bottom taskbar. I need to make sure I account for if the use has an extra high taskbar, etc.
Who is Participating?
klt13Connect With a Mentor Author Commented:
I found the answer.
 Dim boundHeight As Integer = Screen.PrimaryScreen.Bounds.Height
 Dim WorkingAreaHeight As Integer = Screen.PrimaryScreen.WorkingArea.Height
 Dim TaskBarHeight as integer

 TaskBarHeight = boundHeight - WorkingAreaHeight

klt13Author Commented:
I found the answer myself. Thanks everyone!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.