Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:48:59+00:00 2026-06-10T10:48:59+00:00

I am creating a windows Form that has autosize set to true, and AutoSizeMode

  • 0

I am creating a windows Form that has autosize set to true, and AutoSizeMode = GrowAndShrink.

I stuck a simple control onto the form and ran the program. The form correctly resizes to only show the one control.

I then added a strip to the bottom of the form (I started with a DevExpress Bar, but then just to only use native controls, I stuck a statusStrip down there).

When I run the application this time, the autosized form is exactly the same size as the one without the status bar, and the control that I added is overlapping the status bar (I can see that the status bar is still actually there).

Why is this the case? Is this intentional? I would expect that the form shrinking would respect the fact that a status bar on the bottom of a form should not be overlapped.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:49:01+00:00Added an answer on June 10, 2026 at 10:49 am

    The AutoSize doesn’t work very well when the controls are docked, etc. Turn off the DockStyle on the StatusStrip to see the auto size work.

    See Jared Par’s AutoSize and DockStyle.Fill don’t mix blog.

    AutoSize and DockStyle.Fill don’t mix well together. Both properties exist to describe the size relationship relative to the rest of the control but they do so in conflicting ways.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a c# windows form application that goes read registry on remote
When I'm creating a simple Windows form, is it starting in a new thread
I am creating a Windows form application in C# which gets a set of
The windows form that I designed has 1 label. The text of this label
Hi I'm creating test application that has a user control with a Button that
I'm creating an application (Windows Form) that allows the user to take a screenshot
I'm creating a .vdproj setup for a simple Windows form. I have added a
We are creating a Windows Form application (C# or VB.NET) that needs to reference
Case : I'm creating an application (desktop application) with VB.NET (actually windows form), and
I'm using WPF for creating my application, I am calling a windows form using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.