Spread Windows Forms 10.0 Product Documentation
ErrorEventArgs Constructor(Int32)
Example 


Error code for the event
Creates an ErrorEventArgs object with the specified code.
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 for the event
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
Requirements

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

See Also

Reference

ErrorEventArgs Class
ErrorEventArgs Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.