I have Rectangle1 on Window1. I want to be able to MouseDown on the Rectangle and Move it with MouseDrag. The x,y coordinates presented with Rectangle1.MouseDown are relative to the Rectangle. I want it relative to Window1 so I can dynamically reposition the rectangle with the drag.
System.MouseX - Window1.Left works and accomplishes this. But I want to abstract Window1 so i can use this as a custom control independent of the name of the parent window. Me.Parent.Left crashes.
What is the proper syntax to address the parent window’s left, top, width and height?