CheckBoxes in a GroupBox

SVA

Member
Joined
Oct 12, 2006
Messages
16
Programming Experience
3-5
Hello,

I have a serie of CheckBoxes in a GroupBox, and want to check which of these CheckBoxes the user selected. How should I progress? (I have VB 2005) :(
 
Example:
VB.NET:
For Each c As Control In GroupBox1.Controls
    If TypeOf c Is CheckBox Then
        If DirectCast(c, CheckBox).Checked Then
            'use the Name?
            MsgBox("checkbox " & c.Name & " is checked")
        End If
    End If
Next
 
check which of these CheckBoxes the user selected. How sh

Just a point of note.. I couldnt understand your question.. Try not to use the word "check" meaning "test" when talking about checkboxes - normally when you "check a checkbox" it means to "tick" it..

Language confusions, always good to avoid when seeking help on the net! :D
 
Back
Top