Height of Taskbar in a Window Forms Application using

Posted on 2011-05-07
Last Modified: 2012-05-11
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.
Question by:klt13
    LVL 1

    Accepted Solution

    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

    LVL 1

    Author Closing Comment

    I found the answer myself. Thanks everyone!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    In its Critical Driver Installation Order document, Intel stresses that this sequence be followed:   1       Fresh Operating System Installation 2       Latest Service Pack or Patch 3       Intel® Chipset Software Installation Utility (INF Utili…
    A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now