Double-Click the listview item with checkbox

  • Thread starter Thread starter YXQ
  • Start date Start date
Y

YXQ

When double-click the listview item with checkbox (View = Details), the
checkbox will be checked or unchecked, how to disable this behavior? thank
you.
 
When double-click the listview item with checkbox (View = Details), the
checkbox will be checked or unchecked, how to disable this behavior? thank
you.


Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles ListView1.DoubleClick
If ListView1.SelectedItems.Count > 0 Then
If ListView1.SelectedItems.Item(0).Checked = True Then
ListView1.SelectedItems.Item(0).Checked = False
Else
ListView1.SelectedItems.Item(0).Checked = True
End If
End If

End Sub
 
Back
Top