How do I programmatically select an item in my listview

Platform: WinForms|Category: ListView

To select the i-th item, you can use code such as

//Make sure the listview has focus
listView1.Focus();
listView1.Items[i].Selected = true;