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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:41:59+00:00 2026-06-08T07:41:59+00:00

I am trying to design a UI in C# . I come from Java

  • 0

I am trying to design a UI in C# . I come from Java background and am familiar with the different layout managers in Java.

So what I am trying to do is:

I have a Pane. To this pane I wish to add controls one below the other. In Java I would have used a BoxLayout (Y-Axis), and then just added the controls. Also the individual controls/containers could have been further customized by using different layouts for each individual container.

How do I do this in C#?

What I need to do is:

1)Add controls one below the other. Each individual control can be a collection of smaller controls.

So what I can have is something like:

Control 1 here
Control 2 here
Control 3 here

Each control can have its own layout, say BoxLayout on X axis and so on. How do I do all this?

PS: I am using WINFORMS.

  • 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-08T07:42:01+00:00Added an answer on June 8, 2026 at 7:42 am

    I will take a stab that you are building WinForms, and suggest you look at the following controls, which are similar to the Java layout managers;

    • Panel
    • FlowLayoutPanel
    • TableLayoutPanel

    A Panel will let you place controls arbitrarily within it, and you use the Dock, Anchor and Location properties to position each child control.

    A FlowLayoutPanel will do what you are asking if you set the flow to ‘TopDown’, but everything will be left-aligned and that can’t be changed I believe.

    A TableLayoutPanel is going to be the most useful to you I expect. Just create the panel with 1 column, and add each control to a row. The rows can be set to AutoSize to their contents to give you the closest match to a BoxLayout I think.

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

Sidebar

Related Questions

Hey I am very new to PHP, I come from a design background, but
I come from C Background and have knowledge on C++(at least I know virtual
First off, I come from a RDBMS/SQL/C++/Java/Python background and I'm a newbie to Gaelyk,
im trying to come up with a design for a wrapper for use when
I'm trying to design my app's interface in IB using a storyboard and have
I am trying to design my Class Diagram. But I get stuck on this
I’m trying to come up with a database/model design for product and related dynamic
I am trying to come up with a design for a method that takes
I'm trying to come up with a good design for converting a set of
I am trying to come out with a good design for the storage of

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.