OnCts Event

This event is triggered when a change of the CTS signal is detected.

Syntax

Visual Basic .NET
Sub OnCts(ByVal Sender As Object, ByVal State As Boolean)
Visual C#
void OnCts(object Sender, Boolean State);

Parameters

Sender

Event source.

State

CTS signal state.

Code Example

//
// 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);
	}

}