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

前端 未结 4 1001
我在风中等你
我在风中等你 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:04

    SystemColors.Window is (usually) white. Use SystemColors.Control.

    You could, of course, cache the color in use when you set it to your own, then use that to reset it. In the end, though, either approach will work.

提交回复
热议问题