i’m learning Visual, and i’m tryind to do this:
For Each folder In Dir.Subfolders
list = list + 1
C1CheckBox(list).Text = folder.Name
Next
I have a lot of checkboxex named C1CheckBox1, C1CheckBox2, C1CheckBox3, etc… then i want to change the text of each checkbox by the folder name (using the list var to reference the object)…
How i can do this?
thankyou for read
You can find controls by name with Controls.Find :
This will search the entire form including its child containers. If you know all your checkboxes are in say, panel1, you could be more specific: