Friday 8 February 2008

Visual Studio 2008 - Switch between flow layout and absolute positioning

This was not the most obvious thing to find in Visual Studio 2008.

Back in 2003 and 2005 there was a property on the page (or something similar) that you could just set to switch between flow layout and absolute positioning.

In Visual Studio 2008 though, you need to go to Tools --> Options.

In the tree view on the left, open HTML Designer --> CSS styling and the bottom check box should be "Change positioning to absolute for controls added using toolbox"...etc.

The default will be for flow layout so it will be unselected. To absolute position controls, check this box then drag controls onto the form. Uncheck it when you want to start adding controls in flow layout again.

No comments: