|
Summary
Remote connection has been established.
Description
The OnConnect event occurs in response to the Connect method (or in response to setting the Action property to ACTION_CONNECT). This event will occur before the next line of code is executed.
Normally, an application should simply set a flag in response to this event. Then, this flag can be checked directly after the Connect method (or the ACTION_CONNECT action) to make sure that the
connection was actually established.
If the connection could not be established, then the OnError event will be called instead of the OnConnect event.
While handling the OnConnect event, an application should not perform tasks that have the potential of requiring a lot of time to complete, such as generating a message box.
Example
Sub VT220Client_OnConnect () Vt220Client.WriteData = "Connected." Connected = True End Sub
|