Visual Basic Extensibility Reference
Window Object
See Also Example Properties Methods Events Specifics
Represents a window in the development environment.
Remarks
Use the Window object to show, hide, or position windows.
You can use the Close method to close a window in the Windows collection. The Close method affects different types of windows as follows:
Window | Result of using Close method |
Code window | Removes the window from the Windows collection. |
Designer | Removes the window from the Windows collection. |
Window objects of type linked window frame | Windows become unlinked separate windows. |
Note Using the Close method with code windows and designers actually closes the window. Setting the Visible property to False hides the window but doesn't close the window. Using the Close method with development environment windows, such as the Project window or Properties window, is the same as setting the Visible property to False.
You can use the SetFocus method to move the focus to a window.
You can use the Visible property to return or set the visibility of a window.
To find out what type of window you are working with, you can use the Type property. If you have more than one window of a type, for example, multiple designers, you can use the Caption property to determine the window you're working with. You can also find the window you want to work with using the DesignerWindow property of the VBComponent object or the Window property of the CodePane object.