What is the system color of disabled text?

后端 未结 4 1390
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 20:12

I have a control that doesn\'t have Disabled/Enabled support for text, so I need to build that into it.

The question is simply this: If I want to pick the right syst

相关标签:
4条回答
  • 2021-01-03 20:56

    SystemColors.ControlDark looks good on my screen. And this is from actually trying them. I tried most of the others and the shade is wrong.

    But according to the docs, GrayText is the one you need. Bear in mind I tried my sample on Windows 7 with Aero enabled, not sure if screen themes plays silly with the colouring here.

    0 讨论(0)
  • 2021-01-03 21:05

    You're looking for SystemColors.GrayText.

    0 讨论(0)
  • 2021-01-03 21:10

    System.Drawing.SystemColors.GrayText should be it.

    0 讨论(0)
  • 2021-01-03 21:15

    Probably SystemColors.Control will give a color which is required by you or probably this

    0 讨论(0)
提交回复
热议问题