How to add more iterations in a for loop C# Make my loop pick up more
<p>I am trying to show multiple things in a textbox in my software and its just printing out 1 / 5</p>

<p>I think I got the for loop all mixed up so here is how it looks</p>

<pre><code>var getTopFive = new FirefoxDriver();
getTopFive.Navigate().GoToUrl("https://www.tradingview.com/");

IList&lt;IWebElement&gt; movies = getTopFive.FindElements(By.CssSelector("tbody tr"));

for (int i = 0; i &lt; 1; ++i)
{
    activeTextBox.Text = movies[i].Text;  
}
</code></pre>

<p>This is what I tried and failed with.</p>

<p>I tried adding another </p>

<pre><code>activeTextBox.Text = movies[i].Text;
</code></pre>

<p>Which did not work</p>

<p>I also tried adding a second block of the same code showed at the top but with a different name for the int etc. </p>

<p>Then I tried adding a else if below it which gave me another error.</p>

<p>So my question is, how do I make the loop go through all the 5 items instead of just showing the first one which it does by this line of code right here.</p>

<pre><code>for (int i = 0; i &lt; 1; ++i)
{
  activeTextBox.Text = movies[i].Text;
}
</code></pre>