How to Change Background and Foreground Color of a Button Control in C# – Programming, Pseudocode Example, C# Programming Example
C# Windows Form

How to Change Background and Foreground Color of a Button Control in C#

BackColor and ForeColor properties are used to set background and foreground color of a Button respectively. If you click on these properties in Properties window, the Color Dialog pops up.

Alternatively, you can set background and foreground colors at run-time.

The following code snippet sets BackColor and ForeColor properties.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.