Click to See Complete Forum and Search --> : Get UserControl Position


gborges
September 2nd, 2008, 08:30 AM
Hi all!

In my app, the user can drag and drop some usercontrols. Now, I am coding a XML file which the user can save his preferences, so it is necessary to get the position which the usercontrols are displayed.

How can i get the x and y positions value of these controls?

Thank you in advance.

boudino
September 2nd, 2008, 09:25 AM
There is a Location property in the UserControl class. It returns the coordinates of the control inside the area of its container.