| Visual Basic (Declaration) | |
|---|---|
Public Overrides Property BackColor As Color | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public override Color BackColor {get; set;} | |
Return Value
Color object that contains the background color| C# | Copy Code |
|---|---|
private void Form1_Load(object
sender, System.EventArgs e) | |
| Visual Basic | Copy Code |
|---|---|
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load | |
Set the text color for the edit control by setting the ForeColor property.
You can reset the background color to its default setting by calling the ResetBackColor method.