It makes sense. That doesn't seem something hard to do. You just need a mouse movement handler. Something like:
Code:
this.MouseMove += mouseHandler;
void mouseHandler(object sender, MouseEventArgs e)
{
myImage.Location = new Point(e.X, e.Y);
...
}
I assume e.X and e.Y so the current position of the mouse, you can check it up. Now you want this to happen when you click on the image. So you need another event hanlder and a Image variable. Like:
Code:
myImage.Clicked += clicked;
Image selected;
void clicked(object sender, EventArgs e)
{
selected = myImage
...
}
this.MouseMove += mouseHandler;
void mouseHandler(object sender, MouseEventArgs e)
{
if (selected != null)
selected.Location = new Point(e.X, e.Y);
...
}
So, when you click on an image the selected will be set. Then its location will move around according to the mouse position. If you select something else then the other picture will be moved.
If you want one event handler for all images, then you can also use the sender parameter in the clicked method. You get my point I hope