GXDN: Gurux Developer Network
ErrorEventHandler Delegate
NamespacesGurux.DialUpErrorEventHandler
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>
/// <param name="sender"></param>
/// <param name="ErrorInfo"></param>
private void gxDialUp1_OnError(object sender, string ErrorInfo)
{
    try
    {
        MessageBox.Show(ErrorInfo);
    }
    catch (Exception Ex)
    {
        MessageBox.Show(Ex.Message);
    }
}
CopyVB.NET
                ''' <summary>
''' Show occured error.
''' </summary>
Private Sub GxDialUp1_OnError(ByVal sender As System.Object, ByVal ErrorInfo As System.String) Handles GxDialUp1.OnError
    Try
        MessageBox.Show(ErrorInfo)
    Catch Ex As Exception
        MessageBox.Show(Ex.Message)
    End Try
End Sub
CopyVBScript
                'Show errors
Private Sub GXDialUp1_OnError(ByVal sender As Object, ByVal ErrorInfo As String)
    MsgBox ErrorInfo
End Sub

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