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

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

    If you mean in the designer, you can just click into the BackColor property and delete whatever is in there and then press enter. This will reset the property back to its default value.

    If you mean in code, you can set the BackColor property to Color.Empty, and this will have the same effect.

提交回复
热议问题