Spread Windows Forms 6.0 Product Documentation
OnUserError Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : OnUserError Method


e
Event arguments

Glossary Item Box

Raises the UserError event.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub OnUserError( _
   ByVal e As UserErrorEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
Dim e As UserErrorEventArgs
 
instance.OnUserError(e)
C# 
public virtual void OnUserError( 
   UserErrorEventArgs e
)

Parameters

e
Event arguments

Remarks

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.

Requirements

Target Platforms: 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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.