Examples of Laying Out Controls

The following example shows the use of the layout commands to arrange the buttons on a form. The buttons were all selected and then made the same size by using the Size commands.

With the buttons still selected, use the Alignment commands to align your controls, as shown in the example in the following image.

Finally, you can then space the selected controls neatly across the form, by using the Spacing commands, as shown in the example in the following image.

In this example, the buttons have been moved relative to the whole form. If they had been part of a container control, they would have been spread evenly relative to the container, not to the form.