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