The OnConnect event is generated when a connection is
established.
Syntax
Subobject_OnConnect ( [IndexAs
Integer] )
Remarks
The OnConnect event is generated when a connection is made
with a server as a result of a Connect method call. This
event is only triggered when the Blocking property is set to
False.