Version

InvalidOperation Event

Occurs when the user attempts to perform an operation that cannot be completed.
Syntax
'Declaration
 
Public Event InvalidOperation As EditorWithMask.InvalidOperationEventHandler
public event EditorWithMask.InvalidOperationEventHandler InvalidOperation
Event Data

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

PropertyDescription
Beep you can set this property to false to prevent the masked edit from beeping.
Message gets the message associated with an illegal operation user was trying to perform
Remarks

Event that is fired when user performs an action that can not be executed because the state of the control (caret position, selection and other properties) does not allow it. For example, when the user presses left arrow key when caret is already at the first display character in the MaskedEdit, the left arrow key action (which is to move the caret to previous display character) can not be performed. In this case such an action is cosidered an invalid operation and this event is fired.

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