C# Create Snap To Grid Functionality

Posted by Nathan on Stack Overflow See other posts from Stack Overflow or by Nathan
Published on 2009-12-12T05:47:56Z Indexed on 2010/04/18 7:23 UTC
Read the original article Hit count: 651

Filed under:
|
|
|

I am trying to create some snap to grid functionality to be used at run time but I am having problems with the snapping part. I have successfully drawn a dotted grid on a panel but when I add a label control to the panel how to I snap the top, left corner of the label to the nearest dot?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about runtime