vb题用单选钮设置文本框的背景色和字体属性。背景颜色可选红色、绿色和蓝色、字体可选楷体、黑体或隶书。
1个回答
展开全部
只给你个 代码的范例 自己可以扩展
Private Sub Option1_Click()
Text1.BackColor = vbRed
End Sub
Private Sub Option2_Click()
Text1.BackColor = vbGreen
End Sub
Private Sub Option3_Click()
Text1.BackColor = vbBlue
End Sub
Private Sub Option4_Click()
Text1.Font = "隶书"
End Sub
Private Sub Option1_Click()
Text1.BackColor = vbRed
End Sub
Private Sub Option2_Click()
Text1.BackColor = vbGreen
End Sub
Private Sub Option3_Click()
Text1.BackColor = vbBlue
End Sub
Private Sub Option4_Click()
Text1.Font = "隶书"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询