Handle Property  
 

Returns the descriptor for the current socket.

Syntax

object.Handle

Remarks

The Handle read-only property returns the descriptor of the socket being used by the control. If the control is not connected to a remote host, a value of -1 is returned. This property can be used in conjunction with direct calls to the Windows Sockets API.

When using Visual Studio .NET, you must use the property name CtlHandle instead.

Data Type

Integer (Int32)

See Also

Connect Method, Listen Method