4个check1,index从0到3,textbox显示check1的状态 Private Sub Check1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) If Check1(Index).Value = False Then Text1.Text = Text1.Text & "check1(" & Index & ")" & "被选中" & vbCrLf End If End SubPrivate Sub Check1_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) If Check1(Index).Value = False Then Text1.Text = Text1.Text & "check1(" & Index & ")" & "被取消" & vbCrLf End If End Sub
If Check1.Value Then MsgBox "被选中了"
[email protected]
给我看看
[email protected]
Private Sub Check1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Check1(Index).Value = False Then
Text1.Text = Text1.Text & "check1(" & Index & ")" & "被选中" & vbCrLf
End If
End SubPrivate Sub Check1_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Check1(Index).Value = False Then
Text1.Text = Text1.Text & "check1(" & Index & ")" & "被取消" & vbCrLf
End If
End Sub