here's my problem im trying to make an interface for my current project

im trying to make the panels moveble and im trying to achive an icon like behavior to this panel when you move them around

its like when you move an icon from your desktop it will automaticaly align to a grid in your desktop or something like than. that is what i want to happen to my panels when i drag them around the form they will automaticaly align to a grid.

any easy way around this problem?...

oh thank a lot of the help...this will help my metro ui design project alot...thanks again