Visual Basic (Declaration) | |
---|---|
Public Property ForeColor As Color |
C# | |
---|---|
public Color ForeColor {get; set;} |
Property Value
System.Drawing.Color. Default is Color.Black.C# | Copy Code |
---|---|
private void dDetail_Format(object sender, System.EventArgs eArgs) { this.label1.ForeColor = System.Drawing.Color.Brown; } |
Visual Basic | Copy Code |
---|---|
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format Me.Label1.ForeColor = System.Drawing.Color.Brown End Sub |