View Full Version : screen background
Xiang
05-17-2003, 05:37 PM
Dear sir,
How can I manipulate a screen background color???
Thanks
xiang
Nightfire
05-17-2003, 09:50 PM
A screen for what and using what language?
gemini2011
05-27-2003, 10:02 PM
In Visual Basic there is a property in the form that is called "BackColor." You can set up the Color Common Dialog Box and allow the user to choose a color, then right this code
form.BackColor=CommonDialog1.Color
This will change the form that has the form name that you typed in and change the backcolor to the color the user choose
To change to a pre-specified color (one you specify in the code) Use this code:
form.BackColor=QBColor(0)
This would change to specified form's Backcolor to the QBColor (Quick Basic Color) of Black (0)
Here is a Color chart for QBColors:
Black 0
Blue 1
Green 2
Cyan 3
Red 4
Magenta 5
Yellow 6
White 7
Gray 8
Light Blue 9
Light green 10
Light cyan 11
Light red 12
Light magenta 13
Light yellow 14
Bright White 15
:thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.