Export (0) Print
Expand All

Application.XmlForms property

Gets a reference to the XmlFormCollection.

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

'Declaration
PublicMustOverrideReadOnlyPropertyXmlFormsAsXmlFormCollectionGet
'Usage
DiminstanceAsApplicationDimvalueAsXmlFormCollectionvalue = instance.XmlForms

Property value

Type: Microsoft.Office.InfoPath.XmlFormCollection
An XmlFormCollection that represents the collection of forms that are currently open.

After you have set a reference to the XmlFormcollection type, you can use its properties to access each of the XmlForm objects that it contains.

This member can be accessed without restrictions.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

In the following example, the XmlForms property is used to access the Count property of the XmlFormCollection and display the value in a message box.

Dim formsCount As Integer = Me.Application.XmlForms.Count
MessageBox.Show(formsCount.ToString())

Community Additions

Show:
© 2014 Microsoft