开发者

Change text color in DataGridVIewComboBoxCell

开发者 https://www.devze.com 2023-01-24 11:01 出处:网络
I\'ve been trying for awhile to find out how to change the color of the text in the combo box cell. So far all I\'ve managed to do with Style.BackColor and ForeColor is change the color of the backgro

I've been trying for awhile to find out how to change the color of the text in the combo box cell. So far all I've managed to do with Style.BackColor and ForeColor is change the color of the background and text respectively in the drop down box. I want to change the text color in the thing with the down arrow that you click on to make the drop down box, whatever its called.

开发者_运维百科Any ideas?

Thanks guys!

Isaac


I guess it has to do with windows 7 combo box styles. You have to set the style of the combo box to flat for the forecolor to change the text color. But it doesn't look like a comobo box anymore if you do this. The only solution is to use some of the drawing libraries to draw your own text over the box.

0

精彩评论

暂无评论...
验证码 换一张
取 消