This document is archived and information here might be outdated.  Recommended version.


IGxDocumentEventsDisp Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (ArcCatalog)  

IGxDocumentEventsDisp Interface

Provides access to events fired by ArcCatalog.

Product Availability

Available with ArcGIS Desktop.

Members

Description
Event ActiveViewChanged Fired when the active view changes.
Event CloseDocument Fired when a document is closed.
Event NewDocument Fired when a new document is created.
Event OnContextMenu Fired when a context menu should be displayed at the given xy location. Return true if handled.
Event OpenDocument Fired when a document is opened.
Event VBAReset Fired when VBA is reset.

CoClasses that implement IGxDocumentEventsDisp

CoClasses and Classes Description
GxDocument Esri ArcCatalog Application Document.

Remarks

When you are working in VBA, the IGxDocumentEventsDisp interface is automatically exposed for you. There is a GxDocument object defined in the ThisDocument class module. Select that object in the Object Box on the ThisDocument code window and then you can choose any of its events by clicking in the Procedure/Method Box on the ThisDocument code window. This stubs out the event procedures and you can write your code here.