wodTelnetDLX ActiveX Control - StateChange Event
    
 

Description

Fires when wodTelnetDLX changes its state.


Syntax

Private Sub object_StateChange(OldState)



The StateChange Event syntax has these parts:

Part Description
object A wodTelnetDLX object.
OldState A StatesEnum enumeration, as described in settings. Represents previous state.

Settings

The settings for OldState are:

Constant Value Description
 Disconnected 0 Disconnected from server.
 Connecting 1 Connecting to server.
 LogonInProgress 2 Sending authentication data.
 Connected 3 Connected to server - idle.
 Receiving 4 Receiving data from server.
 Sending 5 Sending data to server.
 ProxyConnecting 6 Trying to establish connection on proxy server.

Remarks

StateChange event is fired each time wodTelnetDLX internal state changes. Initially, it is set to Disconnected. Once you initiate new connection, it will change to Connecting, etc..

Using this event you can see if there is something happening with wodTelnetDLX, or it is idle and waiting for your commands.

You can determine current state using State property.