建立程序,功能如下: 程序中有一个窗体,一个文本框和四个按钮,三个按钮分别显示“红色”、“绿色”、“

2025-01-01 02:45:32
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Text1.ForeColor = vbRed
End Sub

Private Sub Command2_Click()
Text1.ForeColor = vbGreen
End Sub

Private Sub Command3_Click()
Text1.ForeColor = vbBlue
End Sub

Private Sub Command4_Click()
Unload Me
End Sub
是这样的吗?