GXDN: Gurux Developer Network
ErrorEventHandler Delegate
NamespacesGurux.FileErrorEventHandler
Errors that occur after the connection is established, are sent through this method.
Parameters
sender (Object)
The source of the event.
errorInfo (String)
Description of error that has occurred.
Examples
CopyC#
                /// <summary>
/// Show occured error.
/// </summary>
private void gxFile1_OnError(object sender, string ErrorInfo)
{
    try
    {
        MessageBox.Show(ErrorInfo);
    }
    catch (Exception Ex)
    {
        MessageBox.Show(this, Ex.Message);
    }
}
CopyVB.NET
                ''' <summary>
''' Show occured error.
''' </summary>
Private Sub GxFile1_OnError(ByVal sender As System.Object, ByVal ErrorInfo As System.String) Handles GxFile1.OnError
    Try
        MessageBox.Show(ErrorInfo)
    Catch Ex As Exception
        MessageBox.Show(Ex.Message)
    End Try
End Sub
CopyVBScript
                'Show occured error
Private Sub GXFile1_OnError(ByVal sender As Object, ByVal ErrorInfo As String)
On Error GoTo GXErr
    MsgBox ErrorInfo
    GXFile1.Close
    Exit Sub
GXErr:
    MsgBox Err.Description
End Sub

Assembly: Gurux.File (Module: Gurux.File) Version: 5.0.0.1