Hi,
Im trying to make a picture box move with the mouse on mousedown event. Im getting the mouse X and Y cordinates then i wanna pass those on to the picture box, and have a timer update mouse XY to picture XY. the problem is that i cant find a way to modify the XY of the picture box, i can only do it by changing top and left etc, but those cordinates dont match the mouse XY so the picture box moves kinda randomly.
So in the end, im asking if anyone could show me a way to change the picture XY instead of useing top / left.. or a way to get top / left to match the mouse XY.
- anti
Im trying to make a picture box move with the mouse on mousedown event. Im getting the mouse X and Y cordinates then i wanna pass those on to the picture box, and have a timer update mouse XY to picture XY. the problem is that i cant find a way to modify the XY of the picture box, i can only do it by changing top and left etc, but those cordinates dont match the mouse XY so the picture box moves kinda randomly.
So in the end, im asking if anyone could show me a way to change the picture XY instead of useing top / left.. or a way to get top / left to match the mouse XY.
- anti