Forum Discussion
karkadil
15 years agoValued Contributor
Every onscreen object has several properties which will be useful in your case:
Using these coordinates you should be able to calculate distance between the objects and perform drag-n-drop operation.
- Left, Top - coordinates of the left and top bounds object within a parent control
- Height, Width - this should be obvious
- ScreenLeft, ScreenTop - absolute coordinates on the screen
Using these coordinates you should be able to calculate distance between the objects and perform drag-n-drop operation.