编写程序利用两组单选按纽,让用户改变窗体的文本框的字体大小和颜色
參考答案:注意两组Option控件分别放两个容器:
Private Sub Option1_Click()
Text1.FontSize = 25
End Sub
Private Sub Option2_Click()
Text1.FontSize = 15
End Sub
Private Sub Option3_Click()
Text1.ForeColor = vbRed
End Sub
Private Sub Option4_Click()
Text1.ForeColor = vbBlue
End Sub