Im working in vb.NET and I'm new to it.
How can you tell if more than one box is checked and send a message while stopping the subroutine util this criteria is met?
Printable View
Im working in vb.NET and I'm new to it.
How can you tell if more than one box is checked and send a message while stopping the subroutine util this criteria is met?
Like this?VB Code:
If CheckedListBox1.CheckedIndices.Count > 1 Then
tiffjoe:
I think this is the function you are looking for -
CheckedListBox1.CheckedIndices.Count()
Figure out which event you want to activate this and test for this value >= 2 (or whatever).
This info was obtained by scrounging through the "CheckedListBox" help.
Thanks that helped. Sometimes I just don't know where to find the answers. Do you know of any good vb.net resources?
Thanks again.