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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:15:05+00:00 2026-06-01T14:15:05+00:00

I want to make a gui for what i explained here C# visual control

  • 0

I want to make a gui for what i explained here C# visual control for editing statements / equations / conditions?

Basically its an expression editor. Each expression consists of a list of stuff, which can be a text string or a parameter. For example, an expression:

If x is greater than 0

consists of:

String "If"
Parameter "variable" (= "x")
String "is"
Parameter "comparator" (= "greater than")
Parameter "value" (= "0")

So, when user wants to edit such expression, i must create (dynamically) five labels, and place them inside the control (Panel) and add onclick events to those of them that arent just strings, so that user can open a window to change the comparator or the variable name etc. The labels must obviously arrange themselves inside the control they are bound to.

Thing is, i dont know if there is already a way to do it automatically. I’d like those labels to arrange themselves just like the words arrange on this page. While it fits, put it to the right of the previous label, when it doesnt, put it on the start of the next row.

Do i have to manually move them OnResize() of the control they are in, or is there an automated way to do it?

Thanks!

  • 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-01T14:15:07+00:00Added an answer on June 1, 2026 at 2:15 pm

    Try using a FlowLayoutPanel

    //Sample:
    //Assuming you are creating your labels from 
    //List<string>
    
    
    
     List<string> labels=new List<string>();
        labels.Add("If");
        labels.Add("variable");
        labels.Add("=");
        labels.Add("5");
        for (int i = 0; i < labels.Count; i++)
        {
            Label lbl = new Label();
            lbl.Text = labels[i];
            flowLayoutPanel1.Controls.Add(lbl);
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make alias to open file with GUI editor on background from
I want to make some GUI mockup program for video player, so my idea
I want to make basic gui-tests with the ms ui automation framework, therefore i'm
Its probarbly a simple 3-tier problem. I just want to make sure we use
I want to make a GUI for chess in C#. The modern freely available
I want to make an editbox in a MATLAB GUI which will only allow
I want to make a button inside my GUI that triggers a shell script.
I want to make a java-based GUI tool that checks for the latest version
I want to make my GUI components aesthetically pleasing. Is there any particular ratio
I need to make a GUI Application for my class , so I want

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.