Location label4refers to the container ( Formor parent control), the cursor position may be relative to the screen.
You need to configure the location. For example, if the container is Form, you can find its location on the screen and calculate from it the location of the cursor relative to the screen.
This is only one opportunity for a reason, but this is a lot :)
source
share