|
See NSDN
grammar
MDIForm
Description
You can create an MDIForm object by selecting Add MDI Form from the Insert menu.
An application can have only one MDIForm object, but it can have multiple MDI child forms. If the MDI child form has a menu, then when the MDI child form is the active form, the menu bar of the child form automatically replaces the menu bar of the MDIForm object. The minimized MDI child form appears as an icon in the MDIForm.
The MDIForm object contains only Menu and PictureBox controls and custom controls with an Align property. In order to put other controls in the MDIForm, you can draw a picture box on the form, and then draw other controls on the picture box. You can use the Print method to display text in a picture box of an MDIForm, but you cannot use this method to display text in the MDIForm itself.
MDIForm objects cannot be modal.
The design of MDI child forms is independent of MDIForm, but is always included in MDIForm at runtime.
You can use the Controls collection in MDIForm to access the controls collection. For example, use the following code to hide all controls in MDIForm:
For Each Control in MDIForm1.Controls
Control.Visible = False
Next Control
The Count property of MDIForm indicates the number of controls in the Controls collection. |
|