Spread Windows Forms 7.0 Product Documentation
ErrorEventArgs Constructor(Int32)
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win.SuperEdit Namespace > ErrorEventArgs Class > ErrorEventArgs Constructor : ErrorEventArgs Constructor(Int32)


errorCode
Error code for the event

Glossary Item Box

Creates an ErrorEventArgs object with the specified code.

Syntax

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

Parameters

errorCode
Error code for the event

Example

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

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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