(moving objects in a form) - reloaded

  • Thread starter Thread starter Serdar C.
  • Start date Start date
S

Serdar C.

hello i try to add this code to (mouse down) event of a picturebox1:

picturebox1.location = new point(e.x,e.y)

but i doesnt work, because the picture box sets its location to the mouse
cursors position on the screen, not the position inside the form... how can
ido that? how can i move the picturebox in a form by holding down the left
mouse button and move it and then after release the mouse button?? like
drag&drop but i dnot want to move a data, i want to move a picturebox???
 
Back
Top