Changing command button text colour.

Aaron78

Registered User.
Local time
Today, 15:35
Joined
Dec 7, 2005
Messages
14
Hi all,

I'd like to change the colour of the text in a command button when the user click the button, but for the text to return to it's original colour when the botton pops back up.

I'm assuming you use the following commands:

Code:
Private Sub cmdClose_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
*******CODE********
End Sub

Private Sub cmdClose_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
*******CODE********
End Sub

But I'm not sure as to how I would enter the correct code.

Any help would be appreciated,

Best Regards,

Aaron
 
Hows this....

Private Sub cmdClose_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command0.ForeColor = 255
End Sub

Private Sub cmdClose_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command0.ForeColor = -2147483630
End Sub
 
Excellent. Thanks.
 

Users who are viewing this thread

Back
Top Bottom