GXDN: Gurux Developer Network
ErrorEventHandler Delegate
NamespacesGurux.SMSErrorEventHandler
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 the error that has occurred.
Examples
CopyC#
                /// <summary>
/// Show occured error.
/// </summary>
/// <param name="sender"></param>
/// <param name="ErrorInfo"></param>
private void gxsms1_OnError(object sender, string ErrorInfo)
{
    try
    {
        gxsms1.Close();
        MessageBox.Show(ErrorInfo);
    }
    catch (Exception Ex)
    {
        MessageBox.Show(Ex.Message);
    }
}
CopyVB.NET
                ''' <summary>
''' Show occured error.
''' </summary>
Private Sub Gxsms1_OnError(ByVal sender As System.Object, ByVal ErrorInfo As System.String) Handles Gxsms1.OnError
    Try
        MessageBox.Show(ErrorInfo)
    Catch Ex As Exception
        MessageBox.Show(Ex.Message)
    End Try
End Sub
CopyVBScript
                'Show errors
Private Sub GXSMS1_OnError(ByVal sender As Object, ByVal ErrorInfo As String)
    MsgBox ErrorInfo
End Sub
See Also

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