Adds an event that will be raised when the currently active document changes.
[Visual Basic] Sub AddOnActiveDocumentChanged( _ ByVal handler As ActiveDocumentEventHandler _ ) [C#] void AddOnActiveDocumentChanged( ActiveDocumentEventHandler handler ); [C++] void AddOnActiveDocumentChanged( ActiveDocumentEventHandler* handler ) = 0; [JScript] function AddOnActiveDocumentChanged( handler : ActiveDocumentEventHandler );
This can result from the user opening or setting focus to a new document, or by closing a document.
IDesignerEventService Interface | IDesignerEventService Members | System.ComponentModel.Design Namespace