Hello people I need help please. Here’s my code.
In here is a list of strings. Let say there are 100 string in the list.
For now in my code it can display 1 item at a time to a richtextbox using foreach, but I want it to display 10 items at a time.
NOTE: This code is in a foreach statement also. so when th 10 items is displayed it must be clear out before new 10 items comes in again to the richtextbox.
What is your good solution for that?
//foreach (string str in links)
//{
Scanner scanner = new Scanner();
List<string> query = scanner.Parse(parts);
foreach (string item in query)
{
richTextBox6.Invoke((Action)(() => richTextBox6.Text = item));
}
//}
Use the AppendText method on the RichTextBox: