第8课:VB编程之单选与复选控件的运用方式
主讲老师:郭盛华多选框与单选框:
CheckBox多选框与单选框不同的是,可以同时选择多个!常用属性:Checked 是否选中Private Sub Command1_Click()
If Check1.Value = 1 Then
MsgBox "选中"
Else
MsgBox "未选中"
End If
End Sub
Private Sub Command2_Click()
If Option1.Value = True Then
MsgBox "选中"
Else
MsgBox "未选中"
End If
End Sub
具体请看视频教程:
页:
[1]