[]
        
(Showing Draft Content)

FarPoint.Win.SuperEdit.ErrorEventArgs.-ctor

ErrorEventArgs Constructor

ErrorEventArgs(int)

Occurs when an error state is created by the control.

Declaration
public ErrorEventArgs(int errorCode)
Public Sub New(errorCode As Integer)
Parameters
Type Name Description
int errorCode

Error code that is being raised

Examples
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

ErrorEventArgs(int, string)

Occurs when an error state is created by the control

Declaration
public ErrorEventArgs(int errorCode, string errorText)
Public Sub New(errorCode As Integer, errorText As String)
Parameters
Type Name Description
int errorCode

The error code for the error that is being raised

string errorText

Additional error information for the error that is being raised

Examples
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