VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Change the background color of a form to a random color

by Santanu (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 26th January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Change the background color of a form to a random color

Rate Change the background color of a form to a random color



'for changin background or foreground
'for example
'one can write the code on any event
form1.backcolor=rgb(rnd(150)*300,rnd(150)*300,rnd(150)*300)
list1.backcolor=rgb(rnd(150)*300,rnd(150)*300,rnd(150)*300)








Download this snippet    Add to My Saved Code

Change the background color of a form to a random color Comments

No comments have been posted about Change the background color of a form to a random color. Why not be the first to post a comment about Change the background color of a form to a random color.

Post your comment

Subject:
Message:
0/1000 characters