I have 12 richTextBoxes and 12 lables that I wish to flip through easily in my program with a for loop but I don't know if or how I can put richTextBox1.Text
richTextBox2.Text and so on in an array.
Here is one example:
string[]data=new string[CommunicationLog.textBoxCount];
data[0]+=this.richTextBox1.Text;
data[1]+=this.richTextBox2.Text;
return data;
richTextBox2.Text and so on in an array.
Here is one example:
string[]data=new string[CommunicationLog.textBoxCount];
data[0]+=this.richTextBox1.Text;
data[1]+=this.richTextBox2.Text;
return data;