I have 48 TextBoxes and i need to fill them with values, which i read from microcontroller throug uart. TextBoxes are named TextBox1 to TextBox48
I can write such code:
How can i loop throug them with FOR loop and fill bohes automatically. I am using visual basic 2010.
I can write such code:
Rich (BB code):
_serialPort.Write({255, 253, 1, 0}, 0, 4)
TextBox1.Text = _serialPort.ReadByte
_serialPort.Write({255, 253, 2, 0}, 0, 4)
TextBox2.Text = _serialPort.ReadByte
_serialPort.Write({255, 253, 3, 0}, 0, 4)
TextBox3.Text = _serialPort.ReadByte
........