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