I have a problem with VB.Net:
Having a section of Text Boxes that I need to enable and disable by command buttons.
The names are: txtBx1, txtBx2… and so on. Attempting to loop through those with the assignments to en- or disable failed.
VB.Net does not recognize the names when adding the numeric name parts.
Dim i as integer
For i = 1 to 10
“txtBx”&i.enabled = False
Returns nothing but errors.
I tried multiple ways to combine loop integer with the string value and all failed.
Does someone have a clue how to get this to work?
I appreciate any advice.