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.
object.State
Integer.
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 |