How to reset to default button BackColor?

后端 未结 11 1812
失恋的感觉
失恋的感觉 2020-12-13 23:38

I was experimenting with different options for the button background color and ended up changing the BackColor property in the Appearance category. I then chang

11条回答
  •  旧巷少年郎
    2020-12-14 00:43

    To restore the default background and foreground to a button use:

    Button1.BackColor = SystemColors.ButtonFace;
    Button1.ForeColor = default(Color);
    Button1.UseVisualStyleBackColor = true;
    

提交回复
热议问题