Aligning components with each other

Use the Design Mode toolbar to align components with each other.

To align groups of components:

  1. With a form open and in Design Mode, control-click to select the components to be aligned.
  2. Select the component whose position you want to use as a common setting for other components last.

    The last-selected component becomes the 'standard' to which the other components are aligned.

  3. Align the components:
    • To align on the left, click the Align Left button on the toolbar.
    • To align on the right, click the Align Right button on the toolbar.
    • To align on the top, click the Align Top button on the toolbar.
    • To align on the bottom, click the Align Bottom button on the toolbar.
    • To align on horizontal centers, click the Align Center button on the toolbar.
    • To align on vertical middles, click the Align Middle button on the toolbar.
相关主题