AutoDisconnect Property  
 

Automatically disconnect from the server when the control is unloaded.

Syntax

object.AutoDisconnect = { True | False }

Remarks

The AutoDisconnect property determines if the control should automatically disconnect from a server when the control is unloaded, typically when the application terminates. The default value for this property is True.

If a dial-up connection was already established at the time the control was loaded, this property will be reset to False, preventing it from automatically disconnecting from the host when it is unloaded. Therefore, to always force the control to automatically terminate a connection when it is unloaded, you must explicitly set the property value to True in your application.

Data Type

Boolean

See Also

AutoConnect Property, IsConnected Property, Connect Method, Disconnect Method