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


errorCode
Error code for the event
errorText
Error string for the event

Glossary Item Box

Creates an ErrorEventArgs object with the specified code and text.

Syntax

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

Parameters

errorCode
Error code for the event
errorText
Error string for the event

Example

csharpCopy Code
private void control_UserError(object sender, FarPoint.Win.Input.ErrorEventArgs e)
{
Messagebox.Show(Convert.ToString(e.ErrorCode) + e.ErrorInfo);
}
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 + e.ErrorInfo);
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.