'Declaration Public Property AllowPromptAsInput As Boolean
'Usage Dim instance As MaskedTextBox Dim value As Boolean instance.AllowPromptAsInput = value value = instance.AllowPromptAsInput
public bool AllowPromptAsInput {get; set;}
'Declaration Public Property AllowPromptAsInput As Boolean
'Usage Dim instance As MaskedTextBox Dim value As Boolean instance.AllowPromptAsInput = value value = instance.AllowPromptAsInput
public bool AllowPromptAsInput {get; set;}
ResetOnPrompt takes precedence over the AllowPromptAsInput property:
ResetOnPrompt value | AllowPromptAsInput value | Behavior |
---|---|---|
true | true | The prompt character can be entered and it causes the current mask position to be reset. |
true | false | The prompt character can be entered and it causes the current mask position to be reset. |
false | true |
The prompt character is processed as a standard input character. |
false | false | The prompt character is not a valid input character. |
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