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

  • Home
  • SEARCH
  • 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 144659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:17:18+00:00 2026-05-11T08:17:18+00:00

I have a page where I have to modify variables which are strings with

  • 0

I have a page where I have to modify variables which are strings with pairs of values and labels. I was using a datagrid object but its not sufficient for whats required ( or eventually will not anyway ).

So I have a form which is a text label and textbox, and a flowpanel, and I’m trying to programmatically add instances of this form for each variable to the flowpanel, and Im getting nothing. Googling for the solution bring sup lots of video tutorials involving clicking on buttons in the UI designer and dropping them on flow panels, I want to do this programmatically however.

What is the ‘correct’ or ‘standard’ way of doing this.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T08:17:19+00:00Added an answer on May 11, 2026 at 8:17 am

    The data (in pairs) sounds like it might fit better with a TableLayoutPanel, but the theory is the same; just call .Controls.Add(...) and it should work:

        FlowLayoutPanel panel = new FlowLayoutPanel();     Form form = new Form();     panel.Dock = DockStyle.Fill;     form.Controls.Add(panel);      for (int i = 0; i < 100; i++)     {         panel.Controls.Add(new TextBox());     }      Application.Run(form); 

    or with a TableLayoutPanel:

        TableLayoutPanel panel = new TableLayoutPanel();     Form form = new Form();     panel.Dock = DockStyle.Fill;     panel.ColumnCount = 2;     form.Controls.Add(panel);      for (int i = 0; i < 100; i++)     {         panel.Controls.Add(new Label { Text = 'label ' + i });         panel.Controls.Add(new TextBox { Text = 'text ' + i });     } 

    Also – I wonder if a PropertyGrid would fit your needs better? This will handle all the ‘get value’, ‘show value’, ‘parse value’, ‘store value’ logic, and can be plugged with things like ICustomTypeDescriptor to allow dynamic properties.

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

Sidebar

Related Questions

I have a page which loads its inner content using jquery and a simple
I have page scans of various sizes in JPG format which I convert to
I have page where user upload they file to my web server which get
I have page which is redirected from htaccess. now I can pass the German
I have Page Tab App, which has a landing page with a Log In
I have a website that does not have page refreshes when the visitor navigates
I'm confused as to how to accomplish this. I have a page which, has
I have a login page which works fine. I would like your help for
I have registration form on my website that, using jquery I append default values
On an index page, I have this: include commentformonoff.php; I would like to modify

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.