Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This example demonstrates how to change the color of text that is displayed on a Label control.
Example
label1.ForeColor=System.Drawing.Color.Pink;
Compiling the Code
This example requires:
A Windows Form Application project.
A Label named label1 on the form.
See Also
Concepts
Designing a User Interface in Visual C#