Class HintTextBox
public class HintTextBox : TextBox
- Inheritance
-
HintTextBox
- Derived
- Extension Methods
Constructors
HintTextBox()
public HintTextBox()
Properties
ForeColor
Gets or sets the color used when displaying text in the control.
public Color ForeColor { get; set; }
Property Value
HintText
public string HintText { get; set; }
Property Value
IsHintTextVisible
Indicates whether the HintText is currently visible.
[Browsable(false)]
public bool IsHintTextVisible { get; }
Property Value
ShowClearButton
Controls whether the clear button is shown. Remains invisible when the HintText is visible.
public bool ShowClearButton { get; set; }
Property Value
Text
Gets or sets the text associated with this control.
public override string Text { get; set; }
Property Value
- string
The text associated with this control.
Methods
OnBackColorChanged(EventArgs)
Raises the BackColorChanged event.
protected override void OnBackColorChanged(EventArgs e)
Parameters
OnClearButtonClicked(EventArgs)
Raises the ClearButtonClicked event.
protected virtual void OnClearButtonClicked(EventArgs e)
Parameters
OnEnter(EventArgs)
Raises the Enter event.
protected override void OnEnter(EventArgs e)
Parameters
OnLeave(EventArgs)
Raises the Leave event.
protected override void OnLeave(EventArgs e)
Parameters
OnTextChanged(EventArgs)
Raises the TextChanged event.
protected override void OnTextChanged(EventArgs e)
Parameters
Events
ClearButtonClicked
Occurs when the clear button is clicked.
public event EventHandler? ClearButtonClicked