Version

InvalidChar Event

Occurs when the user types a character that fails mask validation.
Syntax
'Declaration
 
Public Event InvalidChar As EditorWithMask.InvalidCharEventHandler
public event EditorWithMask.InvalidCharEventHandler InvalidChar
Event Data

The event handler receives an argument of type InvalidCharEventArgs containing data related to this event. The following InvalidCharEventArgs properties provide information specific to this event.

PropertyDescription
Beep you can set this property to false to prevent the masked edit from beeping.
Char gets the invalid char that the user attempted to input
DisplayChar gets the display char instance associated with the illegal char input
Remarks
The InvalidChar event is fired when user types a character that does not match the input mask associated with the current input position.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also