请教问题?
为什么我编的程序在CHSCK控件在同时打勾时文本框无法显示"我爱音乐和体育"呢?而只能显示我爱音乐或我爱体育?
Private Sub Check1_Click(Index As Integer)
If Index = 0 Then
Text2.Text = "我爱音乐"
ElseIf Index = 1 Then
Text2.Text = "我爱体育"
ElseIf Index = 0 And Index = 1 Then
Text2.Text = "我爱音乐体育"
End If
End Sub
Private Sub Option1_Click()
If Option1.Value Then
Text1.Text = "我是男生"
End If
End Sub
Private Sub Option2_Click()
If Option2.Value Then
Text1.Text = "我是女生"
End If
End Sub