Spread Windows Forms 6.0 Product Documentation
UserErrorEventArgs Constructor(UserErrorCode)
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > UserErrorEventArgs Class > UserErrorEventArgs Constructor : UserErrorEventArgs Constructor(UserErrorCode)


errorCode
Error code for the event
Uses the UserErrorCode enumeration.

Glossary Item Box

Creates a UserErrorEventArgs object with the specified code.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal errorCode As UserErrorCode _
)
Visual Basic (Usage)Copy Code
Dim errorCode As UserErrorCode
 
Dim instance As New UserErrorEventArgs(errorCode)
C# 
public UserErrorEventArgs( 
   UserErrorCode errorCode
)

Parameters

errorCode
Error code for the event
Uses the UserErrorCode enumeration.

Example

csharpCopy Code
private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs e)
{
Messagebox.Show(Convert.ToString(e.ErrorCode));
}
Visual BasicCopy Code
Private Sub control_UserError(ByVal sender As Object, ByVal e As FarPoint.Win.Input.UserErrorEventArgs) Handles control.UserError
  Messagebox.Show(e.ErrorCode);
End Sub

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.