'Declaration
Public Property ForeColor As Color
'Usage
Dim instance As DateAmPmField Dim value As Color instance.ForeColor = value value = instance.ForeColor
public Color ForeColor {get; set;}
'Declaration
Public Property ForeColor As Color
'Usage
Dim instance As DateAmPmField Dim value As Color instance.ForeColor = value value = instance.ForeColor
public Color ForeColor {get; set;}
To change the background color of the control, use the Field.BackColor property. When setting the ForeColor property of your text control, ensure that the color you choose does not cause the text of the control to disappear. For example, if the ForeColor and BackColor properties are both set to Color.Black, the text within your textbox control will not be visible.