Serial Ports ActiveX Control Events Overview

Serial Ports ActiveX Control provides a set of events to control serial port state changes:

EventBrief Description
OnRxCharA character was received and placed in the input buffer
OnCTSThe CTS (clear-to-send) signal changed state.
OnDSRThe DSR (data-set-ready) signal changed state.
OnRingA RING signal changed state.
OnBreakA break was detected on input.
OnDCDThe DCD signal changed state.
OnTxEmptyThe last character in the output buffer was sent.
OnRxFlagThe event character was received and placed in the input buffer.
OnCommEventAn event of the first or second provider-specific type occurred.
OnCommErrorA line-status error occurred. Line-status errors are CE_FRAME, CE_OVERRUN, and CE_RXPARITY.
OnLatencyExpiryNo data was received during the period, set by SetLatencyExpiry method.
OnPortAddedA new serial port was added to the system.
OnPortRemovedA serial port was removed from the system.
OnChangePortsListThe list of serial ports was changed.

See also

Methods overview, Properties overview