|
-
Feb 20th, 2002, 11:29 AM
#1
Thread Starter
Hyperactive Member
Color scheme
What are the codes for the various colors? And if I want to change the form's background color by using code, how do I do it?
-
Feb 20th, 2002, 12:30 PM
#2
Frenzied Member
form.backcolor = vbwhite
or vbred, vbblue and so on
or you could use numbers
the numbers are RGB values
so you could use the RGB() function
you give three numbers like RGB(255,0,0) 'would be red
where the first is the amount of red, the second of green, and blue)
0 is none 255 is the highest.
if you need white it would be 255,255,255, black would be 0,0,0
and grey just any the numbers that are the same 128,128,128
Sanity is a full time job
Puh das war harter Stoff!
-
Feb 22nd, 2002, 02:15 AM
#3
Thread Starter
Hyperactive Member
is there any way of creating a pallette of colors to enable the user to choose from and edit text colors, and so forth?
-
Feb 22nd, 2002, 02:23 AM
#4
Thread Starter
Hyperactive Member
is there any way of creating a pallette of colors to enable the user to choose from and edit text colors, and so forth?
-
Feb 22nd, 2002, 06:40 AM
#5
Lively Member
You could use the Choosecolor common dialog, for an example about that go to allapi.net .
-
Feb 22nd, 2002, 07:43 AM
#6
Lively Member
Use the common dialog control...
Code:
Commondialog1.showcolor
form1.backcolor = commondialog1.color
Simple!
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|