C# Trying to figure out how to compare each item from my 2 list boxes, side by side
<p>I have listbox1 and listbox2, they each have 20 variables inside them
The first listbox has the correct answers, the second had user answers.</p>

<p>I'm trying to compare <code>listbox1.items(i)</code> with <code>listbox2.items(i)</code> and if equal, give a checkmark, or +1 to the grade.</p>

<p>But the problem is, I've read all the entries for .items, and was unable to find a way that I can select a certain one via for loops.</p>

<p>My initializing code to create the members of the list looks like this</p>

<pre><code>string[] correctAnswers = System.IO.File.ReadAllLines(@path);
foreach (string value in correctAnswers)
{
    correctAnswersList.Items.Add(value);
}
string[] userAnswers = System.IO.File.ReadAllLines(@path2);
foreach (string value in userAnswers)
{
    userAnswersList.Items.Add(value);
}
</code></pre>

<p>I'm thinking I might have to do the foreach again, but again, I'm not sure how to compare two of them at the same time... If anyone can help, that would be great.</p>