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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:48:34+00:00 2026-05-26T15:48:34+00:00

I have a c# windows form application that has a similar GUI functionality as

  • 0

I have a c# windows form application that has a similar GUI functionality as MSN. It works in the way such that only a notification window appears if there is notification which in this case I have put several buttons and other stuffs in a single panel. (is this the right way to do so?)

How do I code it such that I can use a arrayList to add similar panels to the list and use a for loop to call it out. Example would be calling 2 or 3 similar panels through the use of arraylist(?) and for them to appear below one another. (Maybe like how MSN notifications window comes up one above another.)

the code for the panel is

            this.panel1.Controls.Add(this.button1);
            this.panel1.Controls.Add(this.lblImage);
            this.panel1.Controls.Add(this.lblName);
            this.panel1.Controls.Add(this.lblLinkName);
            this.panel1.Controls.Add(this.lblLinkLocation);
            this.panel1.Controls.Add(this.lblLocation);
            this.panel1.Location = new System.Drawing.Point(13, 134);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(506, 100);
            this.panel1.TabIndex = 17;

do I have to code the for loop in the designer file or the coding file? as after I have tried to add for loop in the designer code file, the designer view sort of unable to display my UI.

  • 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-26T15:48:35+00:00Added an answer on May 26, 2026 at 3:48 pm

    I’m guessing this is what you’re looking for

    for(int i = 0; i < panels.length; i++){
        AddPanel(panels[i], i);
    }
    
    AddPanel(System.Drawing.Point point, int tabIndex){
        Panel panel = new Panel();
        this.Add(panel);
        panel.Controls.Add(new Button());
        panel.Controls.Add(new Label("Image"));
        panel.Controls.Add(new Label("Name"));
        panel.Controls.Add(new Label("linkName"));
        panel.Controls.Add(new Label("linkLocation"));
        panel.Controls.Add(new Label("location"));
        panel.Location = point;
        panel.Name = "panel" + i.ToString();
        panel.Size = new System.Drawing.Size(506, 100);
        panel.TabIndex = tabIndex;
    }
    

    You’ll need to populate the panels array with a the points you’d like your panels to be added at.

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

Sidebar

Related Questions

I have a Windows application that has 2 Forms . From one form I
I have a C# Windows Form Application that has settings, in the settings window
I have a Windows form application that has a child form that pops up
I have a windows form application that uses a Shared class to house all
I have a Windows form application that's consuming web services over https and is
I have a C# Windows Form application that contains a menu with this event:
I am using windows application and I have four combo boxes(comboeventname,combosendtype,comboType,comboschedule) in that form....
I have a Windows Form application. Version 1 of my app has been released
I have been developing a C# windows form application in XP. It all works
I have a form in a Windows form application that I want to display

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.