Hi,
i develop a custom windows forms designer, using Visual Studio 2005 and C#. When I started I searched the Internet for sample code and found some here:
http://support.microsoft.com/kb/813808/en-us or http://support.microsoft.com/ id=813808 . This custom forms designer - compiled with visual studio 2003 + .Net 1.1 - showed a grid over the designed form and was able to snap controls to the grid. Since using .Net 2.0 u obviously have to implement these features by your own, which is not that difficult for drawing the grid (just override the DrawGrid property of the rootdesigner, which i wrote my own class for using DocumentDesigner), but i don’t know how to let controls snap to the grid (there is no SnapToGrid - Property or something similar). Can anyone help
Thanx DGPunkt

SnapToGrid
deepti s
The grid dots should still be present on recent builds of Whidbey. There was a compat issue that the default layout mode for a design surface was snaplines, but this has been fixed so that the grid dots are now the default layout mode again.
- mike