This will give you the results you are looking for.
The issue was that you were not specifying which item in
line
you wanted to display.
try
{
int counter = 0;
string[] lastNames;
lastNames = textBox2.Lines;
foreach (var Column1 in textBox1.Lines)
{
var Column2 = lastNames[counter];
if (!listView1.Items.ContainsKey(Column1))
{
listView1.Items.Add(new ListViewItem(new string[] { Column1, Column2 }));
}
counter++;
}
}
catch
{
}