Question

Hi hope you can help me out.

Basically i have a table layout panel in windows form application with 6 columns and 10 rows. Each cell has a picture box in it.

Example of what i want to achieve.

The table represents some sort of pay table the columns represent the multiplier and the rows represent the rank.

So the game starts and the player after doing whats the process of the game is given a score.

The pay table holds all the scores possible and all i want is to highlight that particular cell which holds the score that the player achieved.

I tried a lot but seems that i cannot find a solution to highlight/color a particular cell.

Can you please help me out!

Thanks in advance

Was it helpful?

Solution

How are you placing the values into the cells? If they're labels you can change their background with label.BackColor (for example label.BackColor = System.Drawing.Color.Red), or the text color with label.ForeColor.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top