OnDcd Event

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

Syntax

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

Parameters

Sender

Event source.

State

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

}