Working with form windows

Microsoft Office InfoPath

Show All Show All

Working with form windows

When working programmatically with a Microsoft Office InfoPath 2003 form, you can write scripting code to access the form's windows, and then customize some of the items that they contain. The InfoPath object model supports access to a form's windows through the use of the Window object in association with the Windows collection.

There are two types of windows in an InfoPath form: the editing window that is used as the form area when a user fills out a form, and the designing window that is used as the design mode when a user designs a form. When writing scripting code in a form, it is the editing window that provides the most useful functionality, because you can use the Window object associated with it to access a variety of properties and methods that can be used to customize a form.

ShowOverview of the Windows collection

ShowOverview of the Window object

ShowUsing the Windows collection and the Window object