• Help Home
  • English (US)
    1. English (US)
    2. 简体中文
    3. 繁體中文
    4. Čeština
    5. Deutsch
    6. English (UK)
    7. Español
    8. Français
    9. Magyar
    10. Italiano
    11. 日本語
    12. 한국어
    13. Polski
    14. Português (Brasil)
    15. Русский
AutoCAD 2025 Developer and ObjectARX
    • Customization and Administration Guides
    • DXF Reference
    • AutoLISP and DCL
    • ActiveX and VBA
      • ActiveX: Developer's Guide
      • ActiveX: Reference Guide
      • ActiveX: CAD Standards Plug-ins Reference
      • ActiveX: Sheet Set Object Reference
      • ActiveX: Transmittal Object Reference
      • ActiveX: Connectivity Automation Object Reference
        • Developer's Guide
        • Reference Guide
          • Objects
          • Events
            • OnConnect Event (ActiveX/CAO)
            • OnDisconnect Event (ActiveX/CAO)
            • OnLabelTemplateCreated Event (ActiveX/CAO)
            • OnLabelTemplateDeleted Event (ActiveX/CAO)
            • OnLabelTemplateModified Event (ActiveX/CAO)
            • OnLinkTemplateCreated Event (ActiveX/CAO)
            • OnLinkTemplateDeleted Event (ActiveX/CAO)
            • OnLinkTemplateModified Event (ActiveX/CAO)
            • OnQueryCreated Event (ActiveX/CAO)
            • OnQueryDeleted Event (ActiveX/CAO)
            • OnQueryModified Event (ActiveX/CAO)
          • Methods
          • Properties
    • ObjectARX and Managed .NET
    • JavaScript
    • AutoCAD Core Console
    Share
    • Email
    • Facebook
    • Twitter
    • LinkedIn
     
     

    OnConnect Event (ActiveX/CAO)

    Triggered when a connection to a data source is established.

    Signature

    VBA / VB.NET

    object.OnConnect(Datasource)
    object

    Type: DbConnect

    An object expression that evaluates to a DbConnect container object.

    Datasource

    Type: String; input to the handler

    The name of the data source.

    Related Reference

    • DbConnect Object (ActiveX/CAO)

    Was this information helpful?

    Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Please see the Autodesk Creative Commons FAQ for more information.

    • Privacy Statement
    • Legal Notices & Trademarks
    • Report Noncompliance
    • © 2025 Autodesk Inc. All rights reserved