rgb()

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top