Why is my windows form so large?

Posted on 2005-04-05
Last Modified: 2010-04-16
So i have  form seems to be created a C# windows form app. in the design view of the C# form, my form seems to be 584 x 352.  Nowhere in the properties does it specify any control should be larger than 584 x 352.  When i build my project, the resulting EXE application is over 600 pixels high. No controls actually go outside the 352 pixel high form, it's just blank space and i can't figure out how to make it smaller.
Question by:kylepike
    LVL 11

    Accepted Solution

    Couple of things to check:
    1. What is your WindowState property set to? (Normal, Maximized, Minimized)
    2. Controls should not affect the size of your form. Check to make sure there is nothing in the form load event, InitializeComponent, or after InitializeComponent call that resizes the form.
    LVL 21

    Expert Comment

    do you do anything to your screen resolution? smaller forms look bigger on the smaller resolution

    Author Comment

    Setting the maximumsize to 584,352 did the trick, but maximizing does nothing now.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    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