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
Well, something like
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.