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 4272392
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:34:17+00:00 2026-05-21T07:34:17+00:00

Every time I open my form, it defaults to 328×192. I’ll change it to

  • 0

Every time I open my form, it defaults to 328×192. I’ll change it to 328×170, save my project, close my project, then reopen it.

All of a sudden, my form is back to 328×192 instead of the size I saved it as (328×170).

I went into my Form.Designer.cs and tried adding this line of code:

this.Size = new System.Drawing.Size(328, 170);

And still, when I reopen the project, the form is at 328×192. I don’t know where this value is coming from and it’s driving me crazy. The weird part about this problem is that it seems to occur randomly, where I will get that extra margin on the bottom of my form. I’m worried this will slip into production because even when I save it to the correct dimensions, when I reopen it, it’s back to the wrong dimensions.

Needless to say, GUI errors make my work look 1000% worse no matter how things are under the hood.

  • 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-05-21T07:34:18+00:00Added an answer on May 21, 2026 at 7:34 am

    Do not edit the designer-generated code. The designer doesn’t save the Size property, it isn’t a good measure for the size of the form. The height of the caption bar of the form is determined by user preference. It saves the ClientSize property instead. That’s an important one since it determines how much room is available to controls.

    It isn’t otherwise obvious what made the size revert. Could be something as simple as forgetting to check-in the changes which then lead you on the wild Size goose chase.

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

Sidebar

Related Questions

Every time I open a page I want to get the currently active project
I'm wondering how I can open again the closed form from using this.Close(). Every
Every time I open my Terminal application at work it starts from a clean
I am fed up having to turn them on every time I open the
As per the Emacs docs , every time you open a file, Emacs changes
I've been using File.ReadAllText() to open a CSV file, but every time I forget
I don't know why this is happening... But, every time I open the designer
My problem is everytime i open the website; first time the map doesn't show
Every time I turn on my company-owned development machine, I have to kill 10+
I'm trying to return rows in Open XML form from a table value function

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.