Class HintTextBox
public class HintTextBox : TextBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
- Inheritance
-
objectMarshalByRefObjectHintTextBox
- Implements
- Derived
- Inherited Members
- 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
public override string Text { get; set; }
Property Value
Methods
OnBackColorChanged(EventArgs)
protected override void OnBackColorChanged(EventArgs e)
Parameters
OnClearButtonClicked(EventArgs)
Raises the ClearButtonClicked event.
protected virtual void OnClearButtonClicked(EventArgs e)
Parameters
OnEnter(EventArgs)
protected override void OnEnter(EventArgs e)
Parameters
OnLeave(EventArgs)
protected override void OnLeave(EventArgs e)
Parameters
OnTextChanged(EventArgs)
protected override void OnTextChanged(EventArgs e)
Parameters
Events
ClearButtonClicked
Occurs when the clear button is clicked.
public event EventHandler? ClearButtonClicked