2011-09-21 61 views

回答

1

爲此,您需要考慮家長控制的位置。 (@ ParentControl)+ Control.Location.X(@ UserControl),

ControlControl(X,Y)=(UserControl.Location.X(@ Parent Control)+ Control.Location.X(@ UserControl),
UserControl.Location.Y(@ Parent Control)+ Control.Location.Y @用戶控件))

X = UserControl.Location.X(@家長控制)+ Control.Location.X(@用戶控件)
Y = UserControl.Location.Y(@家長控制)+ Control.Location.Y (@ UserControl)