How to move objects with drag method(編號:2055)

Hi,
When I drag an object with mouse, a dotted rectangle which representing the object is present. How to use drag method to move an object at the same position as the rectangle? Can anyone post the code here? Also, is there any simple method which can save all the settings of a form and its controls at run time? I'd like to apply the new settings when the form is loaded again at run time.
Thx. very much