Home / FAQ / WinForms / Controls / How do I programatically change the color of a control
Use the properties BackColor and ForeColor.
button1.BackColor = Color.White;
button1.ForeColor = Color.Blue;
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.