Q:

C# CF drag image object

After drawing a Line, Rect, Ellipse, I want to click onto a shape and move it with mousemove event. How can I get which object is being chosen?

A:

You could store the shapes you draw as GraphicsPaths, iterate through them on MouseMove and use IsVisible(Point) to determine when the current mouse position is inside a shape's bounds.

