'Declaration Public Event ValidationError As TimeSpanEditorValidationErrorHandler
public event TimeSpanEditorValidationErrorHandler ValidationError
The event handler receives an argument of type TimeSpanEditorValidationErrorEventArgs containing data related to this event. The following TimeSpanEditorValidationErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
InvalidText | Returns or sets the invalid user input that caused the event to fire. |
Message | Returns or sets the message that is displayed to notify the user of the error. |
MessageBoxIcon | Returns or sets the icon that is displayed in the MessageBox. |
MessageBoxTitle | Returns or sets the text that is displayed in the titlebar of the MessageBox. |
PromptUser | Returns or sets a boolean value indicating whether the user is notified of the validation error via MessageBox. |
Reason | Returns the reason the validation failed. |
RetainFocus | Returns or sets a boolean value indicating whether the control retains the input focus until the error condition is cleared. |
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