【发布时间】:2014-09-07 22:39:45
【问题描述】:
我试过了:
//this code is triggered when i click a button on the form(lets call it form3)
// the first line works, but the second line is ReadOnly
this.BackColor = System.Drawing.Color.Crimson;
DefaultBackColor = this.BackColor;
在 form1 上,我有一个带有以下代码的按钮,没有 cmets,当我单击它时触发:
//this button is basically a refresh button for the background
this.BackColor = form3.DefaultBackColor;
我是 stackoverflow 的新手,因此非常感谢您的帮助,特别是如果可以提供替代代码。 :)
【问题讨论】:
标签: c# forms colors customization