VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Keeps changing the command button color when clicked

by Tahir Hussain Turi (3 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st January 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Keeps changing the command button color when clicked

Rate Keeps changing the command button color when clicked



    'Note: button style must be graphical
    'This example uses random colors and RGB, but you
    '   can use any vbColor constant too.
    Command1.BackColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub


Download this snippet    Add to My Saved Code

Keeps changing the command button color when clicked Comments

No comments have been posted about Keeps changing the command button color when clicked. Why not be the first to post a comment about Keeps changing the command button color when clicked.

Post your comment

Subject:
Message:
0/1000 characters