rgb()

G

Guest

How can i have code for more color other then one listed down?
like pink , orange, green?


lngRed = RGB(255, 0, 0)
lngBlack = RGB(0, 0, 0)
lngYellow = RGB(255, 255, 0)
lngWhite = RGB(255, 255, 255
 
M

Marshall Barton

Triton said:
How can i have code for more color other then one listed down?
like pink , orange, green?


lngRed = RGB(255, 0, 0)
lngBlack = RGB(0, 0, 0)
lngYellow = RGB(255, 255, 0)
lngWhite = RGB(255, 255, 255

My my eyes like these colors:
Pink = RGB(255, 127, 127)
Orange = RGB(255, 127, 0)
but you should pick these for yourself.

Create a test form with three text boxes named txtRed,
txtGreen and txtBlue. Set their AfterUpdate event
procedures to:
Me.Section(0).BackColor = RGB(txtRed, txtGreen, txtBlue)
and play around til you find the numbers you like for the
colors you want.

BTW, You're in for a tough time if you want to get all those
colors on different rows of a form in continuous or
datasheet view.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top