Move the picture on movement of cursor
Here is a procedure to move picture on movement of cursor.
Steps are as follows:
1. Open visual studio 2010 then click on "File" > "New" > "Project".
2. Then select "Windows Form Application" in visual c#.
3. Give the name of the application.
4. Drag and Drop "PictureBox" and "Timer" on the Form.
5. Now go to the "Properties of Timer" and Set behavior "Enabled as True".
6. Now Choose an "Image for PictureBox".
And import a pic from the computer.
Now on the Timer's "Tick Event". Write the following code.
private
void timer1_Tick(object
sender, EventArgs e)
{
pictureBox1.Location =
new Point(Cursor.Position.X,Cursor.Position.Y);
}