How to set control to absolute positioning automatically on drag-drop
As many of you have noticed, Visual Studio 2008 Beta 2 and Visual web Developer Express 2008 Beta 2 did not allow you to drop control on design surface and immediately begin dragging it around using absolute positioning. Instead, you had to invoke Format | Position... to set absolute position before dragging the control. Many of users said that it was rather inconvenient and VS 2005 was able to set position automatically. We did listen and in the RTM there is a new option in Tools | Options | HTML Designer | CSS:
It works the same way it did in VS 2005. When the option is checked, designer automatically adds style="position:absolute" to the control dropped from toolbox. You can then drag control by its white tab and position it where you want it.
Comments
Anonymous
September 18, 2007
PingBack from http://msdnrss.thecoderblogs.com/2007/09/19/how-to-set-control-to-absolute-positioning-automatically-on-drag-drop/Anonymous
September 23, 2007
Thanks, a great addition to the splendid program :)Anonymous
September 26, 2007
This property isn't there in my VS2008? Is there some sort of plug in to get it?Anonymous
September 26, 2007
This property was added after Beta 2Anonymous
October 09, 2007
but i downloaded latest vs 2008, this is still beta 2. how to update to this feature?Anonymous
October 09, 2007
There won't be any new updates until RTM. So you'll have to wait until the release is available.Anonymous
October 18, 2007
The comment has been removedAnonymous
November 28, 2007
The comment has been removedAnonymous
November 28, 2007
Label is effectively a <span> element, which is flow element. It has to have style="display:block" to become positioned.Anonymous
December 12, 2007
It seems that HyperLinks can't be positioned absolutely... Even for controls it is not as flexible as VS 2005. It accounts for the Migration Cost!