Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要知道如何更改表单背景色。在按钮单击事件中,我有 this.BackColor = SystemColors...
这部分应该如何写,比如蓝色?
你可以试试下面的代码。
this.BackColor = Color.Blue;
这是一个包含在System.Drawing命名空间中的结构。
System.Drawing
您可能需要查看文档