2020年6月9日 星期二

vb.net 點選Listview沒有Item的地方 [Detect ListView Without select Item]


1
2
3
4
5
6
7
8
    Private Sub ListView1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseUp
        If e.Button = Windows.Forms.MouseButtons.Left Then

            If ListView1.FocusedItem.Selected = False Then
                MsgBox("")
            End If
        End If
    End Sub

沒有留言:

張貼留言