![]() | Type | Description | ||
| X as Long | A single that specifies the current X location of the mouse pointer. The x values is always expressed in screen coordinates. | |||
| Y as Long | A single that specifies the current Y location of the mouse pointer. The y values is always expressed in screen coordinates |
Use the Move event to control control's position. The Move event is called every time when the container is moved or resized. The X and Y coordinates define the control's position not the container position. The control is moved while the container is moved if the control is anchored to one of the container edges. To anchor the control to container edges use the HAnchor and VAnchor properties.