How to disable a checkbox in a checkedlistbox?

后端 未结 11 775
遥遥无期
遥遥无期 2020-12-03 10:46

I have some items in a CheckedListBox, I want to disable the CheckBox of first item in it.
i.e. I want to disable the first item in the C

11条回答
  •  广开言路
    2020-12-03 11:07

    Try Below Code:

    Private Sub CheckedListBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles CheckedListBox1.MouseUp
            If (Condition) Then
             Me.CheckedListBox1.SelectedIndex = -1
            End If
    End Sub
    

提交回复
热议问题