Application.ActiveWindow Property
InfoPath Developer Reference |
A read-only property that returns a reference to a Window object that represents the currently active window. Read-only
Version Information
Version Added: InfoPath 2003
Syntax
expression.ActiveWindow
expression An expression that returns a Application object.
Return Value
Window
Remarks
Using the ActiveWindow property, you can gain immediate access to the window that is currently being viewed by the user, and then use the properties and methods of the Window object that it returns.
The type of window returned is based on the XdWindowType enumeration.
Security Level 0: Can be accessed without restrictions.
Example
In the following example from the Meeting Agenda sample form, the ActiveWindow property is used to gain access to the MailEnvelope property of the Window object that returns a MailEnvelope object.
JScript |
---|
|
JScript |
---|
|
See Also