Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.SuperEdit Namespace / ErrorEventArgs Class / ErrorEventArgs Constructor / ErrorEventArgs Constructor(Int32)
Error code that is being raised
Example


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

    Parameters

    errorCode
    Error code that is being raised
    Example
    private void control_UserError(object sender, FarPoint.Win.Input.ErrorEventArgs e)
    {
    Messagebox.Show(Convert.ToString(e.ErrorCode));
    }
    Private Sub control_UserError(ByVal sender As Object, ByVal e As FarPoint.Win.Input.ErrorEventArgs) Handles control.UserError
      Messagebox.Show(e.ErrorCode);
    End Sub
    See Also