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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:42:50+00:00 2026-05-23T10:42:50+00:00

I am new to .NET UI stuff and I came from a background with

  • 0

I am new to .NET UI stuff and I came from a background with tk UI programming so I am trying to find corresponding ways of doing things. Maybe .NET has a way of achieving the same result that I don’t know of.

So what I am trying to do is roughly illustrated in image 1.

We have a header section, a body section and a footer section. They each have a number of controls in them. What I am trying to find is a way for me to let header section and footer section each take a certain height and stretch horizontally; let body section stretch to fill the rest. Is there a way to do this without needing to calculate the point position and just say “pack header towards the top, pack footer towards the bottom and put body in between”

  • 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-23T10:42:50+00:00Added an answer on May 23, 2026 at 10:42 am

    Top Control – Anchor: Left, Right, Top.
    MiddleControl – Anchor: Left, Right, Top, Bottom.
    Bottom Control – Anchor: Left, Right, Bottom.

    namespace ChartApp
    {
        partial class Form2
        {
            /// <summary>
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.IContainer components = null;
    
            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
    
            #region Windows Form Designer generated code
    
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                this.panel1 = new System.Windows.Forms.Panel();
                this.panel2 = new System.Windows.Forms.Panel();
                this.panel3 = new System.Windows.Forms.Panel();
                this.SuspendLayout();
                // 
                // panel1
                // 
                this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
                | System.Windows.Forms.AnchorStyles.Left) 
                | System.Windows.Forms.AnchorStyles.Right)));
                this.panel1.BackColor = System.Drawing.Color.Maroon;
                this.panel1.Location = new System.Drawing.Point(0, 87);
                this.panel1.Name = "panel1";
                this.panel1.Size = new System.Drawing.Size(599, 266);
                this.panel1.TabIndex = 0;
                // 
                // panel2
                // 
                this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
                | System.Windows.Forms.AnchorStyles.Right)));
                this.panel2.BackColor = System.Drawing.Color.Coral;
                this.panel2.Location = new System.Drawing.Point(0, 353);
                this.panel2.Name = "panel2";
                this.panel2.Size = new System.Drawing.Size(599, 86);
                this.panel2.TabIndex = 1;
                // 
                // panel3
                // 
                this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
                | System.Windows.Forms.AnchorStyles.Right)));
                this.panel3.BackColor = System.Drawing.SystemColors.ActiveCaption;
                this.panel3.Location = new System.Drawing.Point(0, 0);
                this.panel3.Name = "panel3";
                this.panel3.Size = new System.Drawing.Size(600, 86);
                this.panel3.TabIndex = 2;
                // 
                // Form2
                // 
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize = new System.Drawing.Size(600, 439);
                this.Controls.Add(this.panel3);
                this.Controls.Add(this.panel2);
                this.Controls.Add(this.panel1);
                this.Name = "Form2";
                this.Text = "Form2";
                this.ResumeLayout(false);
    
            }
    
            #endregion
    
            private System.Windows.Forms.Panel panel1;
            private System.Windows.Forms.Panel panel2;
            private System.Windows.Forms.Panel panel3;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

New ASP.NET Web API HttpClient has been giving me some strange results. Here is
I have a new asp.net mvc project and i am trying to figure out
I am new to .NET programming. We are a team of 4 members developing
I am relatively new to .net. As I was trying to grasp the concept
I'm new to this ASP.NET stuff. In my page I have a Datalist with
New to .NET/C# stuff so please forgive me if it's something obvious ;-) I'm
There are a lot of new features that came with the .Net Framework 3.5.
I haven't really looked into the new .NET stuff since 2.0, but I'm wondering
I'm very new to the whole Ajax/Asp.Net stuff so... I know that there are
For starters, I'm new to ASP.NET Ajax stuff, and only getting back into JQuery

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.