CancelConnectLogin MethodCancelConnectLogin Method*
*Contents  *Index  *Topic Contents
*Previous Topic: BanUsers Method
*Next Topic: ChangeNickname Method

CancelConnectLogin Method

Cancels a Connect or Login call.

Syntax

object.CancelConnectLogin 

Parameters

objectRequired. An object expression that evaluates to an MsChatPr control.

Remarks

This method can be called when the connection state is csConnecting or csLogging.

Example

MsChatPr1.Connect "comicsrv1.microsoft.com"
    'OnConnectionState(csConnecting) event is fired 
MsChatPr1.CancelConnectLogin
MsChatPr1.Login "irc.mtv.com", "JB007", "JamesB", "James Bond"
    'OnConnectionState(csConnecting) event is fired 
MsChatPr1.CancelConnectLogin
MsChatPr1.Login "irc.univ-lyon1.fr", "Vette"
    'OnConnectionState(csConnecting) event is fired
    'OnConnectionState(csLogging) event is fired		
MsChatPr1.CancelConnectLogin

See Also

Connect, Login


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.