If I have a checkedlistbox with items (apple, carrot, frog) and a button that will only be enabled when at least one item is selected from the checkedlistbox, which event do I use?
where 'ListofURLFromDB_Listbox' is the checkedlistbox and 'Process_FromList_URLs_btn' is the button
I've tried .ItemCheck, .SelectedIndexChanged and .SelectedValueChanged
If (ListofURLFromDB_Listbox.SelectedIndex = -1) Then
Process_FromList_URLs_btn.Enabled = False
ElseIf (ListofURLFromDB_Listbox.SelectedIndex > -1) Then
Process_FromList_URLs_btn.Enabled = True
End If
Many thanks