samedi 16 avril 2022

How do I check and display if multiple checkboxes are checked within a group box in vb.net

    For Each ctl As Windows.Forms.Control In Me.Controls
        If TypeOf ctl Is System.Windows.Forms.CheckBox Then
            Dim ck As System.Windows.Forms.CheckBox = ctl
            If ck.Checked Then
                intcheckboxesChecked += 1
            End If
        End If
    Next

When I display the count its results to a 0 value




Aucun commentaire:

Enregistrer un commentaire