本文介绍了如何使用alt + del删除listview项...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Alt + Del删除listview项目...
现在我只需选择行并按del键删除项目,但我想通过按alt + del删除项目键。怎么可能请帮帮我.....
我尝试过的事情:
Private Sub ListView1_KeyDown(ByVal sender As Object,ByVal e As System.Windows.Forms.KeyEventArgs)Handles ListView1.KeyDown
如果e.KeyCode = Keys。删除然后
Dim i作为ListViewItem
i = ListView1.SelectedItems(0)
i.Remove()
结束如果
结束次级
解决方案
how can I use Alt+Del to Delete listview item ...
Now I just select the row and press del key delete the item, But I want to delete item by press alt+del key. How it is possible Please help me....
What I have tried:
Private Sub ListView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ListView1.KeyDown If e.KeyCode = Keys.Delete Then Dim i As ListViewItem i = ListView1.SelectedItems(0) i.Remove() End If End Sub
解决方案
这篇关于如何使用alt + del删除listview项...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!