Igor is right about that you posted this in the wrong place. However, the anser is short, so I'll post it here right away:

Quote Originally Posted by FenixEden View Post
[...] returns error saying Location is not a member of Object^.
Correct: Is isn't. You need to cast the parameter to Control ^ (or a more specific class like Button ^) in order to access control members:

Code:
x = safe_cast<Control ^>(sender)->Location.X;