OnPortLost Event

This event is triggered when a COM port is removed while it is opened (e.g. using USB to Serial cable).

Syntax

Visual Basic
Sub OnPortLost(Sender As TObject)
Visual C++ (MFC)
void OnPortLost(TObject * Sender);

Parameters

Sender

Event source.