|
-
Mar 6th, 2007, 04:19 AM
#1
Thread Starter
Addicted Member
[2005] Listbox Validation
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
Abrium
Asking the beginners questions so you don't have to!
If by chance hell actually froze over and I some how helped you... Please rate.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|