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
'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