This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

Visual Studio
VS 2005+

Turn Off Visual Studio 2005 Snap Lines

Visual Studio 2005 introduced the concept of snap lines to assist in positioning Windows Forms elements. For those who preferred to use the Visual Studio 2003 snap to grid layout style, snap lines can be disabled.

Visual Studio Configuration

The grid layout settings are controlled from the standard Visual Studio 2005 options menu. This is also available for the Visual Studio Express Editions such as Microsoft C# Express or Visual Basic Express. To view the options dialog box, select Tools, Options from the menus.

Show All Settings Mode

In some Visual Studio editions the standard options dialog box may be set to view a limited number of settings. If so, you will see only Environment, Text Editor and Debugging within the tree structure. To show all of the settings for Visual Studio, tick the Show all Settings checkbox at the bottom-left of the dialog. The advanced settings will appear.

Grid Settings

Once all of the settings are visible, expand the Windows Forms Designer branch of the tree. Select the General section to reveal the grid settings. To switch from Snap Lines to Snap to Grid, select the relevant option for Layout Mode. Once you have made your selection, click the OK button and restart the development environment to enable the change.

Visual Studio Grid Settings

31 August 2006