How do I reset a .NET Windows Forms TextBox BackColor property?

前端 未结 4 984
我在风中等你
我在风中等你 2020-12-17 15:32

The default behavior of property BackColor of a TextBox is as follows: when enabled, it is White (SystemColors.Window), w

4条回答
  •  天命终不由人
    2020-12-17 16:02

    In case there is no way to reset the control so it will return to automatically changing its background color when enabled/disabled I would recommend using the UIElement.IsEnabledChanged event to set your desired enabled/disabled background colors. I hope this is helpful!

提交回复
热议问题