'Command1的Style属性设置为1 Private Sub Command1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = vbLeftButton Then Command1.BackColor = vbRed ElseIf Button = vbRightButton Then Command1.BackColor = vbButtonFace End If End Sub