Gets or sets a value indicating if the watermark will be displayed when the focus is set on the WatermarkTextBox when the text is empty.
'Declaration
Public Property KeepWatermarkOnGotFocus As Boolean
'Usage
Dim instance As WatermarkTextBox
Dim value As Boolean
instance.KeepWatermarkOnGotFocus = value
value = instance.KeepWatermarkOnGotFocus
public bool KeepWatermarkOnGotFocus {get; set;}
Property Value
true if the watermark will be displayed when the focus is set on the WatermarkTextBox when the text is empty;
false, otherwise. By default,
false.
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2