About PortController
Introduction
Purchasing PortController
Redistributing PortController
License Agreement
Support
Getting Started
How to Use PortController
PortController Sample Projects
Handling PortController Errors
Reference
Properties
AvailableSystemPorts
BaudRate Property
Break Property
BytesUsedRQ Property
BytesUsedTQ Property
Cd Property
Cts Property
DataBits Property
Dsr Property
Dtr Property
DtrDsr Property
EnableReadOnEventChar Property
EventChar Property
ForceBeginInvokeEventFiring Property
IsOpen Property
IsFileTransferInProgress Property
Parity Property
PortHandle Property
PortName Property
ReceiveBufferSize Property
Ring Property
Rts Property
RtsCts Property
StopBits Property
SystemPorts Property
TraceOutput Property
TransmitBufferSize
XoffByte Property
XonByte Property
XonXoff Property
Methods
CancelFileTransfer Method
ClearRQ Method
ClearTQ Method
Close Method
GetErrorStatus Method
Open Method
Read Method
ReadBinary Method
ReceiveFileXModem Method
ReceiveFileXModemCRC Method
ReceiveFileYModem Method
ReceiveFileZModem Method
SendFileXModem Method
SendFileXModem1k Method
SendFileYModem Method
SendFileZModem Method
SimulateReceivedXoff Method
SimulateReceivedXon Method
Write Method
WriteBinary Method
Events
OnBreakSignal Event
OnCdToggle Event
OnCtsToggle Event
OnDataReceived Event
OnDsrToggle Event
OnError Event
OnEventCharReceived Event
OnFileTransferComplete Event
OnFileTransferStatusUpdate Event
OnRing Event
OnTQEmpty Event

OnEventCharReceived Event

Triggered when the event character is received in the input buffer.

Syntax

[Visual Basic]
Private Sub myPortController_OnEventCharReceived(ByVal sender As Object, ByVal e As SciCom.PortController.EventCharReceivedEventArgs) Handles myPortController.OnEventCharReceived

[C#]
private void OnEventCharReceived(object sender, SciCom.PortController.EventCharReceivedEventArgs e)

[C++]
System::Void OnEventCharReceived(System::Object * sender, SciCom::PortController::EventCharReceivedEventArgs * e)

Parameters

sender

A reference to the PortController object.

e

The arguments associated with the event.

Arguments

strReadBuffer: a String that holds the data read up to and including the event character

Remarks

Setting the property EnableReadOnEventChar to true will cause all data up to and including the first occurrence of the event character in the receive queue to be read when the event character is received.

See Also

EnableReadOnEventChar property | EventChar property