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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:18:42+00:00 2026-06-13T13:18:42+00:00

i got a Class called AdvancePanle that drived from Panle, and i got a

  • 0

i got a Class called AdvancePanle that drived from Panle, and i got a class call AdvnaceCheckBox that drived from CheckBox.

I created a AdvancePanle in my Form, and now i want to add some AdvnaceCheckBox’s to it.
so i created this, simple method:

 private void addCheckBox()
    {
        AdvancedCheckBox checkbox;
        for (int i = 0; i < 10; i++)
        {
            checkbox = new AdvancedCheckBox();
            checkbox.Location = new Point(0, i + 5);
            checkbox.Text = "bla" + i;
            selectablePanel1.Controls.Add(checkbox);
        }
    }

and i call this method in the Form onLoad:

 protected override void OnLoad(EventArgs e)
        {
            addCheckBox();
            selectablePanel1.AutoScroll = true;

            base.OnLoad(e);
        }

but afther the Form is opened, I can see only 1 CheckBox in the Panle.
i tried playing with the position, but i alwys see only 1 checkbox.

am I adding the CheckBoxs in a worng way?

(sorry for my english)

  • 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-13T13:18:42+00:00Added an answer on June 13, 2026 at 1:18 pm

    You’re placing them too close to each other. (0, 5+i) will evaluate to:

    (0,5)
    (0,6)
    (0,7)
    (0,8)
    ...
    

    Try this instead:

    checkbox.Location = new Point(0, i*100 + 5);
    

    or this:

    checkbox.Location = new Point(0, i*checkbox.Height + 5);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a class called Property (from external library == cannot be modified) that
I've got a class called Shape which inherits from JPanel. A number of sub-classes
I've got a class called List_Field that, as the name suggests, builds list input
I've got a PHPUnit test that tests a class called HelpTokenizerTest. This class implements
I've got this MustInherit class called ViewerElement, from which derive classes like ViewerLine, ViewerImage,
I've got a class called BackendConnector which uses a NSURLConnection to call a SoapWebservice
I've got one class called WindowTemplate that is the base for other (more complex)
I've got a class called Request . At some point in that class I
Ok so I've got a QGraphicsScene in a class called eye. I call a
I've got a class called 'MusicNote' which inherits from 'PictureBox'. I'm trying to make

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.