Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

MDIForm Object Changes in Visual Basic .NET

In Visual Basic 6.0, an MDIForm was a special type of form that acted as a container for an MDI application. In VisualBasic .NET, an MdiForm is any form with the IsMdiContainer property set to true.

In Visual Basic 6.0, setting the MDIChild property on a child form identified it as a child of the MDI form; an MDI application could have only one MDI form. In Visual Basic .NET, the MdiParent property replaces the MDIChild property and identifies the MDI form that will contain the child form; MDI applications can have multiple MDI containers.

The following table lists Visual Basic 6.0 properties and methods and their Visual Basic .NET equivalents. Only properties and methods that are unique to the MDIForm object are listed — for other properties, methods, and events see Form Object Changes in Visual Basic .NET.

MDIForm Properties and Methods

Visual Basic 6.0Visual Basic .NET Equivalent
ActiveForm propertyActiveMdiCHild
Arrange method
0 - vbCascade

1 – vbTileHorizontal

2 – vbTileVertical

3 – vbArrangeIcons

LayoutMdi
0 - MdiLayout.Cascade

1 - MdiLayout.TileHorizontal

2 - MdiLayout.TileVertical

3 - MdiLayout.ArrangeIcons

AutoShowChildren propertyNo equivalent. For more information, see MDI form Show behavior has changed.
BackColor propertyNo equivalent. The BackColor for an MDI form will always be the default.
Picture propertyNo equivalent. MDI forms in Visual Basic .NET cannot display pictures.

See Also

MDI Changes in Visual Basic .NET | Form Object Changes in Visual Basic .NET | Forms Task Changes in Visual Basic .NET

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.