Database Reference
In-Depth Information
1. Open the ParentForm in the Design view, and click the Windows menu, as
shown in Figure 9-22.
2. Double-click the first option, Cascade, under Windows, and it will take you to
its click event. Add the following code:
LayoutMdi(MdiLayout.Cascade);
3. Double-click Tile Horizontal, and in the Code view under the click event, add
the following code:
LayoutMdi(MdiLayout.TileHorizontal);
4. Double-click the Tile Vertical, and in the Code view under the click event, add
the following code:
LayoutMdi(MdiLayout.TileVertical);
5. Double-click Tile Vertical, and in the Code view under the click event, add the
following code:
LayoutMdi(MdiLayout.ArrangeIcons);
6. Now build the solution, and run the application by pressing F5; the MDI
application will open. After it opens, go to the Open Forms menu and click Win
App and User Info one by one. It is important to have at least two forms open
in the MDI parent form.
Now go to Windows menu and try the available options by clicking Cascade, then Arrange Vertical,
then Arrange Horizontal, and finally Arrange Icons. When you will try these options, Tile Vertical will
show the child forms arranged like Figure 9-23.
Search WWH ::




Custom Search