Share via


Visual Basic: Winsock Control

DataArrival Event

See Also    Example    Applies To

Occurs when new data arrives.

Syntax

object_DataArrival (bytesTotalAs Long)

The DataArrival event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
bytesTotal Long. The total amount of data that can be retrieved.

Remarks

This event will not occur if you do not retrieve all the data in one GetData call. It is activated only when there is new data. Use the BytesReceived property to check how much data is available at any time.