Visual Basic Extensibility Reference
MainWindow Property
See Also Example Applies To Specifics
Returns a Window object representing the main window of the Visual Basic development environment. Read-only.
Remarks
You can use the Window object returned by the MainWindow property to add or remove docked windows. You can also use the Window object returned by the MainWindow property to maximize, minimize, hide, or restore the main window of the Visual Basic development environment.