문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top