VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



changes the color of a label randomly

by yunis mohamed (1 Submission)
Category: Encryption
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 30th July 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

changes the color of a label randomly

API Declarations


'put a label in the form and name it label1
'put a commandbutton in the form and name it command1

Rate changes the color of a label randomly



Static i As Integer
 Label1.BackColor = QBColor(i)
 i = i + 1
 If i = 16 Then
 i = 1
 End If
End Sub

Download this snippet    Add to My Saved Code

changes the color of a label randomly Comments

No comments have been posted about changes the color of a label randomly. Why not be the first to post a comment about changes the color of a label randomly.

Post your comment

Subject:
Message:
0/1000 characters