View Single Post
 
Old 01-08-2017, 05:44 PM
Cerian Knight's Avatar
Cerian Knight Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,162
Default

In the code 'Else' clause, the lx and ly are made equal to the X and Y values of the mouse position within the picture box as you move it without the left button depressed. Because they are Static, they can be used as a reference to find out how far the pointer has moved from its starting point as you begin moving with the left button depressed.

It works fine for me, so if it worked for you and then stopped, consider other places in your code that might also be trying to simultaneously manage the position of the PictureBox.

There is a setting in Windows (Enhance Pointer Precision) that affects the granularity of the mouse (I usually turn it on)... probably not related to the issue, though.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote