Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I programmatically select an item in a 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;

Contributed from George Shepherd's Windows Forms FAQ



Page view counter