Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

colors

Status
Not open for further replies.

lowfyr

Technical User
May 6, 2002
8
US
I have a DB that I use for a minatures game. Each figure had a list of "stats". Some of these stats have special abilities which on the figure are denoted by color. My DB has a listing of each ability but I cant figure out how to change the color when a particular figure is selected from on the form from a combobox. Right now they come up with black text, and next to the box I have a key showing what each color means.
 
What I would do is get the color codes from the ForeColor (format a field ForeColor to the color you want, then copy down the number (ex: 255 = Red, 0 = Black, etc)...

Then when you select from the drop-down, have it look up that value and set the .ForeColor of whatever you're trying to change to the numbers you had copied down, respectively...

Now, .ForeColor is for the Font... If you want to shade the background, it would be .BackColor

Roy
aka BanditWk
roy@cccamerica.org
RLMBandit@aol.com (private)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top