I've been programming for a while but am new to C#. I have a program with 16 text boxes and am hoping I can get all their results through a loop (or something similarly efficient) rather than have 16 lines of:
ResultArray[0] = TextBox1.Text;
ResultArray[1] = TextBox2.Text;
.
.
.
etc
The obvious probelm is of course the fact that the TextBox numbers are changing and hence could not be referenced in a loop.
Thanks for any help.
ResultArray[0] = TextBox1.Text;
ResultArray[1] = TextBox2.Text;
.
.
.
etc
The obvious probelm is of course the fact that the TextBox numbers are changing and hence could not be referenced in a loop.
Thanks for any help.