Like the subject says I have a listview, and I wanted to add the Ctrl + A select all shortcut to it. My first problem is that I can't figure out how to programmatically select all items in a listview. It seems like it should be relatively easy, like ListView.SelectAll()
or ListView.Items.SelectAll()
, but that doesn't appear to be the case. My next problem is how to define the keyboard shortcut for the ListView
. Do I do it in a KeyUp
event, but then how would you check two presses at once? Or is it a property that you set?
Any help here would be great.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…