Click here to Skip to main content
14,773,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I have a text annotation that appear on a photo when mouse clicked and for now I want to pick it up with mouse and move it any where on the photo any one can tell me how can I do that?

Thanks at all..:confused::confused:
Posted
Updated 12-Dec-10 7:01am
v3

1 solution

Quite simple, handle the mouse down event on the photo to get the initial position then the mouse move event to get where it is being moved to. Position the label containing the annotation using the values from the mouse events.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900