views:

216

answers:

3

How do you turn off those blue guide lines when working on an ASP.NET form in VS 2008?. You used to be able to just drag absolute controls around. Now, I'm fighting with the designer which won't let me put things where I want to put them!

Cheers, Rob.

+2  A: 

Try holding down the Alt key while dragging - this will temporarily disable all snaplines.

If you want to permanently disable them then go to Tools > Options > HTML Designer > CSS Styling and uncheck Change positioning to absolute... (it is the last checkbox in the list).

Andrew Hare
A: 

Setting the position attribute on a div to position: absolute will allow you to drag it around.

Chalkey
+1  A: 

Actually - they key change is that to drag a control around in VS2008, you drag the white tab ABOVE the control, not the control itself. If you drag the control of the window, you're changing the parent.

http://blogs.msdn.com/mikhailarkhipov/archive/2008/03/05/absolute-and-relative-positioning-in-visual-studio-2008-web-designer.aspx

This is a stubtle change to the way it worked in VS2005.

But the reminder about using the ALT key to turn off grid/snapping as well is useful as well.

I googled so many times to try and find this!

Cheers, Rob.

Rob Nicholson