Professional Documents
Culture Documents
MDI Applications
Multiple document interface (MDI) applications
permit more than one document to be open at a
time. This is in contrast to single document in-
terface (SDI) applications, which can manipu-
late only one document at a time. Visual Studio
.NET is an example of an MDI application—
many source files and design views can be open
at once. In contrast, Notepad is an example of
an SDI application—opening a document closes
any previously opened document.
Imports System
Imports System.Windows.Forms
End Class
End Class
Imports System
Imports System.Windows.Forms
End Class
End Class
ArrangeIcons
Cascade
TileHorizontal
TileVertical
Merging Menus
Often, the items that should appear on an MDI
application’s main menu are dependent on the
type of document being displayed or on whether
any document is displayed at all. Of course, this
effect could be achieved in code by dynamically
adding and removing menu items each time a
child window is activated. However, the Win-
dows Forms framework provides an easier way.
Imports System
Imports System.Windows.Forms
End Class
End Class
Add
MergeItems
Remove
Replace