Hey all,

What is the best method for listbox validation? I have three list boxes and I'm trying to use the sub listbox with declaration validating. I have this code written but its not quite functioning like it would with a text box. I need a way to clean my code up because I have a ton of if...then statements trying to validate that an index has been selected or there is a value in a listbox.

"If LisWorkShop.SelectedIndex = -1 Then
MessageBox.Show("Workshop")
e.Cancel = True
Else
e.Cancel = False End If"


I'm just looking for a beginners way to streamline listbox validation

Thanks