I tried to create a function that creates a ListViewItem and put it in my ListView, but when I use it the second time it just overwrites the first item.
This is the function:
ListViewItem lvi = new ListViewItem(taskName2);
lvi.SubItems.Add(DateTime2);
lvi.SubItems.Add(More2);
listView1.Items.Add(lvi);
How can I do it without overwriting the first item? Is there is a array of ListViewItem or something?