If statements for Checkboxes

前端 未结 6 1126
刺人心
刺人心 2021-02-18 23:43

I wanted to know how to write if statements to see if one or another check box is checked or not.

I have two check boxes. I wanted it to check to see if checkbox 1 is c

6条回答
  •  臣服心动
    2021-02-19 00:08

    In VB.Net

    If Check1.checked and Not (Check2.checked) Then
    
    ElseIf Check2.Checked and not Check1.Checked then
    
    End If
    

提交回复
热议问题