Window Property [Visio 2003 SDK Documentation]
Returns the window associated with the current instance of Microsoft Office Visio 2003, with an instance of the Microsoft Office Visio 2003 Drawing Control, or with a KeyboardEvent or MouseEvent object.
objRet = object.Window
objRet The Window object associated with object.
object Required. An expression that returns an Application object, DrawingControl, KeyboardEvent, or MouseEvent object.
Version added
2003
Remarks
For the DrawingControl object, the Window property returns the window that the control is displaying. The value is valid only when the control is in place and active.
For KeyboardEvent and MouseEvent objects, the Window property returns the window associated with the event represented by one of these objects.
Example
As it applies to the Application object.
The following macro shows how to use theWindow property to print the caption of the window associated with the current instance of Visio in the Immediate window.
Public Sub Window_Example()
Debug.Print Application.Window.Caption
End Sub
Applies to | Application object | DrawingControl object | InvisibleApp object | KeyboardEvent object | MouseEvent object
See Also | Window object