• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1011
  • Last Modified:

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.
  • 2
1 Solution
klt13Author 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!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now