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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:59:41+00:00 2026-05-28T03:59:41+00:00

I have simple WinForms GUI that I want to use with TabPages. The problem

  • 0

I have simple WinForms GUI that I want to use with TabPages. The problem I’m having is resizing and working with multiple sizes of screens. What settings do I change for each TextBox, GroupBox to make it fit the screen nicely without making it feel to the user like it’s badly designed?

Usually I would use Dock Fill but it doesn’t work with more then 1 GroupBox. Then I checked/played with Anchor trying to make it bind to Top, Left, Right, Bottom for everything but that makes a big mess (textboxes overlapping other label, texboxes etc.). I tried to choose some here, some here but whenever I try resize unexpected things happen. How would I go from here? My system is 24″ and resolution 1920x1080p, but my users often have a range from 1024×768 to 1920×1080.

Right now I’m using Devexpress controls but the question applies to both Devexpress and builtin controls.

screenshot

  • 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-28T03:59:41+00:00Added an answer on May 28, 2026 at 3:59 am

    First, set the form size in the designer to a bit less than the minimum expected resolution – say 900×650 or so. Then you can design a form that will work at all resolutions even if it doesn’t get resized.

    Next, work out which controls should stay a fixed size, and which should stretch/grow as the form us made bigger. Firstly, some fields won’t benefit from being enlarged (e.g if you have a text box that always contains a percentage of up to 3 digits, it is pointless or even counter-productive to allow it to grow big enough to show 9 digits. Secondly, some fields fill the entire width of the form, so they naturally will work better if they grow with it.

    Now, set the anchoring. In general, anchor the edge of a control to the nearest edge of the form. If you set only one anchor, the control will not stretch, and the anchored edge will start the same distance from that side of the form.

    If you want a control to stretch, anchor opposing sides (eg left and right). This will keep those edges the same distance from the form’s edges, so the control will stretch to fit.

    You will see that if one control is anchored in place, and the control next to it is set to stretch, there is a good chance that they’ll end up overlapping, so you must treat all controls across the form as a related group.

    For more control, place groups of controls into a container control like a panel or group box. Then their anchoring relates to their parent group, and the group can be anchored to the form.

    To see the effects, just resize the form in the designer and see where everything goes – then undo and fix any anchoring that didn’t work. You’ll soon get a feel for how the layout works, and how to design forms to work well with resizing.

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

Sidebar

Related Questions

I have simple WinForms application where modifying Windows Registry. The problem is that in
Problem 1: I have a simple winforms app and I want to DataBind my
I have a simple WinForms GUI with multiple TextBox es, CheckBox es, and RadioButton
I have a simple winforms application that I am connecting to my database with
I have a simple winforms application. I use SQL Compact DB with Linq. I
I have a simple C# WinForms Crud AP for employees that have to do
This simple problem reoccurs many times for me in .NET with WinForms. I have
I have a VERY simple C# Winforms project that I made using Visual Studio
I have made a simple test application for the issue, two winforms each containing
i have some WinForms app (Framework to develop some simple apps), written in C#.

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.