(moving objects in a form) - reloaded

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???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top