void ClearAllRichtextboxes()
{
richTextBox3.Clear();
richTextBox5.Clear();
richTextBox6.Clear();
richTextBox9.Clear();
richTextBox10.Clear();
}
Cl
You could do something like string formatting to help space the strings with spaces.
something like
richTextBox1.Text = String.Format("This is the number of A in B: {0}\r\n This is the number of X in Y: {1}", output1, output2);
\r\n indicates a new line, you can find more information about the String.Format() method on msdn: https://msdn.microsoft.com/en-us/library/system.string.format(v=vs.110).aspx
Update the richTextBox.Text
with the new information. If you want to append the new strings to what is already there use "+". You can save the string as its own variable if it helps.
richTextBox.Text = "First segment.";
richTextBox.Text = richTextBox.Text + " Second segment.";
More info about string concatenation: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/strings/how-to-concatenate-multiple-strings