This event is triggered when a line-status error occurs.
| Visual Basic .NET | Sub OnError(ByVal Sender As Object, ByVal Error As FTSPCCommErrors)
|
|---|---|
| Visual C# | OnError(object Sender, FTSPCCommErrors Error);
|
Sender
Event source.
Error
A line-status error type.
//
// Event handler by example of CTS signal event handler
//
private void ftspcControl1_OnCts(object Sender)
{
try
{
if (ftspcControl1.Cts)
{
// Todo: add your code
}
}
catch (FTSPCException E)
{
MessageBox.Show("Error " + E.ErrorCode.ToString() + "\r\n" +
E.ErrorSource, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}