Cycling throughText Boxes

  • Thread starter Thread starter RossPart
  • Start date Start date
R

RossPart

Guest
I am using Visual Studio 2019, and have a program using visual basic

I have some Text Boxes on a form set to Read only which I use to display changing data. The data may be changed many times during the running of the Program

For example they are numbered TxtBox0, TxtBox1, TxtBox2....TextBox7. - 8 in all

I wish to use a loop such as:-

For i = 0 to 7

TextBoxi.text = Data(i) ' This is Integer type data

Next i

I realize that TextBoxi is invalid. How can I cycle through all 8 Text Boxes and populate them with the new data


Ross

Continue reading...
 
Back
Top