State

Returns the state of the control, expressed as an enumerated type. Read-only and unavailable at design time. Returns an integer that indicates the state of the control, expressed as an enumerated type.

Syntax

object.State

Data Type

Integer.

Settings

The settings for the State property are described in the following table.

Constant Value Description
sckClosed 0 Default. Closed
sckOpen 1 Open
sckListening 2 Listening
sckConnected 7 Connected
sckError 9 Error