Changes

Jump to: navigation, search

Designing Forms in Visual Studio

167 bytes added, 15:20, 20 July 2007
Positioning and Sizing Controls Using the Grid
* '''GridSize''' - This setting controls the vertical and horizontal distances between the grid points on the form. This essentially controls the granularity of the grid. The smaller the gaps between grid points, the greater control over control size and position.
* '''ShowGrid''' - Controls whether the grid dots are visible in the form. Note that this setting control only whether the grid is visible, not whether controls snap to the grid locations. Snapping is controlled by the ''SnapToGrid'' setting.
* '''SnapToGrid''' - This setting determinies determines whether the grid is used when controls are added. When set to ''True'' new controls will "snap" to the nearest grid location when added. When set to ''False'' the grid is ignored and controls will appear where they are dropped or drawn.
* '''LayoutMode''' - Controls whether controls are layed laid out by snapping to a grid location, or are aligned with other controls in the form. Aligning with other controls is achieved using "Snap Lines" which are covered in detail i in the next section of this chapter.

Navigation menu