NumericUpDown backcolor not working as expected

后端 未结 3 1776
我在风中等你
我在风中等你 2021-01-23 02:53

I recently had the need to write a version of the Windows NumericUpDown control which could highlight whether a value was mandatory. It needed to do this by changing the back co

3条回答
  •  执笔经年
    2021-01-23 03:57

    Windows does not properly/completely repaint the NumericUpDown control when it is disabled.

    See this post: NumericUpDown background colour change for disabled element

    Enabling / disabling the control after it is displayed is a work-around.

提交回复
热议问题