Change color of Label in C#
To change color of a label in C# we can use.ForeColor
property to assign a new color for example we have a label with name myLabel
:myLabel.ForeColor = System.Drawing.Color.Red;
.ForeColor
property to assign a new color for example we have a label with name myLabel
:myLabel.ForeColor = System.Drawing.Color.Red;
In this page (written and validated by A. Gawali) you learned about Change color of Label in C# . What's Next? If you are interested in completing C# tutorial, we encourage you simply to start here: C# Tutorial.
Share On: |