_ApplicationEvents_Event.XDocumentChange event

Occurs when a new form is created, when an existing form is opened, or when another form is made the active form.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Event XDocumentChange As _ApplicationEvents_XDocumentChangeEventHandler
'Usage
Dim instance As _ApplicationEvents_Event
Dim handler As _ApplicationEvents_XDocumentChangeEventHandler

AddHandler instance.XDocumentChange, handler
event _ApplicationEvents_XDocumentChangeEventHandler XDocumentChange

Remarks

The XDocumentChange event of the _ApplicationEvents_Event interface is primarily used with COM Add-ins. For more information about creating a COM Add-in for Microsoft InfoPath, see How to: Create a COM Add-in to Add Custom Features to InfoPath.

See also

Reference

_ApplicationEvents_Event interface

_ApplicationEvents_Event members

Microsoft.Office.Interop.InfoPath namespace