画一个文本框,四个复选按钮,一个命令按钮.
Private Sub Command1_Click()
If Check1.Value = 1 Then
a = Check1.Caption '内容是:黑体
Text1.FontName = "黑体"
End If
If Check2.Value = 1 Then
b = Check2.Caption ':红色
Text1.ForeColor = &HFF&
End If
If Check3.Value = 1 Then
c = Check3.Caption ':加粗
Text1.FontBold = True
End If
If Check4.Value = 1 Then
d = Check4.Caption ':13号字体
Text1.FontSize = "13"
End If
Label1.Caption = "你选择了" & a & " " & b & " " & c & " " & d
End Sub