Move images in c sharp
I want to load an small image to a pictureBox and then move it animately to another side of form.

I've loaded image and used a timer to move the image...but when i run it, just show final position of pictureBox and its image...

How I can show image through the path to reach final location?

Plz help me to fix this ...
TNX

here is my attemp:

    public partial class Form1 : Form
    {
        private int counter = 0;

        void timer_Tick(object sender, EventArgs e)
        {
            counter++;
            if (counter == 1)
            {
                pictureBox1.Show();
                timer1.Stop();
                counter = 0;
            }
        }

        public Form1()
        {
            InitializeComponent();

            timer1.Interval = 10;
            timer1.Tick += new EventHandler(timer_Tick);
        }

        private void button1_Click(object sender, EventArgs e)
        {

            while(i<=100){

                 int x = pictureBox1.Location.X;
                 int y = pictureBox1.Location.Y;

                 pictureBox1.Location = new Point(x+25, y);
                 timer1.Start();
            }
         }
    }


Move images in c sharp
===

I want to load an small image to a pictureBox and then move it animately to another side of form.

I've loaded image and used a timer to move the image...but when i run it, just show final position of pictureBox and its image...

How I can show image through the path to reach final location?

Plz help me to fix this ...
TNX

here is my attemp:

    public partial class Form1 : Form
    {
        private int counter = 0;

        void timer_Tick(object sender, EventArgs e)
        {
            counter++;
            if (counter == 1)
            {
                pictureBox1.Show();
                timer1.Stop();
                counter = 0;
            }
        }

        public Form1()
        {
            InitializeComponent();

            timer1.Interval = 10;
            timer1.Tick += new EventHandler(timer_Tick);
        }

        private void button1_Click(object sender, EventArgs e)
        {

            while(i<=100){

                 int x = pictureBox1.Location.X;
                 int y = pictureBox1.Location.Y;

                 pictureBox1.Location = new Point(x+25, y);
                 timer1.Start();
            }
         }
    }

