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
ドキュメントを参照することをお勧めします。