Spread Windows Forms 12.0 Product Documentation
OnUserError Method (SuperEditBase)

FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : OnUserError Method
Event arguments
Raises the UserError event.
Public Overridable Sub OnUserError( _
   ByVal e As UserErrorEventArgs _
Dim instance As SuperEditBase
Dim e As UserErrorEventArgs
public virtual void OnUserError( 
   UserErrorEventArgs e


Event arguments

Provides event arguments for the UserError event, which occurs when the user tries to type or paste something into the edit control that is not allowed, or the user performs an action that cannot be processed or is invalid.

If the control's UserEntry property is set to UserEntry.FreeFormat, the UserError event does not occur, and the control lets the user type or paste anything into the control. The contents are still validated when the control loses the focus, and if invalid data was provided, the InvalidData event occurs.

See Also


SuperEditBase Class
SuperEditBase Members
UserError Event
UserEntry Property
InvalidData Event