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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:51:45+00:00 2026-06-14T12:51:45+00:00

I have a folder with 100 subfolders. My app have 20 checkboxes. When the

  • 0

I have a folder with 100 subfolders.
My app have 20 checkboxes.

When the form loads, the form retreives all the folder names and gives to each checkbox “checkbox.Text” property.

obviusly if I have only 25 checkboxes and 100 folders, i get an “indexOutOfRange” exception.

How to resolve this by adding more checkboxes in time-execution? it’s possibly?

PS: I’m begineer with VS

thankyou for read

UPDATE: Language is VB.NET the proyect is a windows Form

  • 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-14T12:51:46+00:00Added an answer on June 14, 2026 at 12:51 pm

    Well, something like

    dim newCheckBox as new CheckBox()
    newCheckBox.Text = "Foo"
    targetControl.Controls.Add(newCheckBox)
    

    should work. Depending on what the parent control is, and what its layout properties are, you’ll want to modify newCheckBox’s properties to make them align to screen neatly.

    Can use FlowLayoutPanel for example.

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

Sidebar

Related Questions

Let's say I have 100 winforms in folder Forms. All form classes belong to
I have a folder that contains about 100 txt files with information in each
So basically, I have a folder with a bunch of subfolders all with over
I have a folder full of 100-odd Access97 files. I need to update them
I have more than 100 folders with subfolders ... example: a/b/c/d/e f/g/h m/n k/l/o/p/s/z/x/
I would like to have a /downloads folder inside an Orchard web app where
I have a folder, versioned under SVN, with let's say 100 of files which
In a project MyProject.Data, I have a folder named mappings with all mapping in.
I have a hundred of files in a folder which have the form i.ext
In my project, i have a folder called Images, where all the images iam

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.