The AgentX control provides the following events to the user. It is strongly recommended that all events be processed as quickly as possible because the remote object is blocked from further processing while these events are being executed locally. Therefore modal dialog boxes should not be used in event handlers.
Changed (Conversation As Object)
This event is fired when a remote Conversation object's Send method is called with changed data. Note that if the remote Conversation executes a Send method when no data has been changed, this event will not be fired locally.
See Error Handling for an example of how to use the Changed event.
Connected (Conversation As Object, Connect As Long)
This event is fired when an incoming connection for the control's AppID is detected. The first parameter is the Conversation object requesting the connection. The second parameter is the connection response value.
Setting the second parameter to 0 rejects the connection. The initial value of this parameter depends upon the AutoConnect property's value.
Disconnected (Conversation As Object)
This event is fired when the remote Conversation object has either been dismantled or has had its ResetConversation method invoked. Use it to facilitate cleaning up resources allocated to a connection.