Spread Windows Forms 15.0
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / ErrorEventArgs Class / ErrorEventArgs Constructor / ErrorEventArgs Constructor(Int32,String)
The error code for the error that is being raised
Additional error information for the error that is being raised
Example


In This Topic
    ErrorEventArgs Constructor(Int32,String)
    In This Topic
    Occurs when an error state is created by the control
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal errorCode As Integer, _
       ByVal errorText As String _
    )
    'Usage
     
    
    Dim errorCode As Integer
    Dim errorText As String
     
    Dim instance As New ErrorEventArgs(errorCode, errorText)
    public ErrorEventArgs( 
       int errorCode,
       string errorText
    )

    Parameters

    errorCode
    The error code for the error that is being raised
    errorText
    Additional error information for the error that is being raised
    Example
    private void control_UserError(object sender, FarPoint.Win.Input.ErrorEventArgs e)
    {
    Messagebox.Show(Convert.ToString(e.ErrorCode) + e.ErrorInfo);
    }
    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
    See Also