ListView control and key strokes
-
Hello, If the listview control is populated with items, and user preses for example key "r", the list view control scrolls to the first object in the listview control whose text starts with letter "r". How can I achive this programatically? Meaning, if I have a button, and when user presses the button, it sends a key stroke event to listview control with letter "r". Thank you.
-
Hello, If the listview control is populated with items, and user preses for example key "r", the list view control scrolls to the first object in the listview control whose text starts with letter "r". How can I achive this programatically? Meaning, if I have a button, and when user presses the button, it sends a key stroke event to listview control with letter "r". Thank you.
-
Something like this: private void listView1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.R) { //search the list view for item listView1.Items[0].Selected = true; } }