TextBox.PlaceholderText Property

Definition

Gets or sets the text that is displayed when the control has no text and does not have the focus.

C#
public virtual string PlaceholderText { get; set; }

Property Value

The text that is displayed when the control has no text and does not have the focus.

Applies to

Product Versions
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9