title: PictureBox buggy movement in Visual Studio C#
body: <p><strong>Problem</strong></p>
  
  <p>I have PictureBoxes and I want them to move. I make them move using a timer. I can get them to move, but every time they move a pixel they leave a white background at their previous position. And when moving they make my TextBoxes blink.</p>
  
  <p>This is how it looks: <a href="https://gyazo.com/cdd17b0e88a86b4dec115ceff41b44c5" rel="nofollow">https://gyazo.com/cdd17b0e88a86b4dec115ceff41b44c5</a></p>
  
  <p>Please don't pay much attention on my poor Paint skills </p>
  
  <p><strong>Code</strong></p>
  
  <pre><code> public partial class Form1 : Form
  {
  
      int timeTicker;
      int timeMin;
      int timeSec;
  
      public Form1()
      {
          InitializeComponent();
      }
  
      private void timer1_Tick(object sender, EventArgs e)
      {
          timeTicker++;
  
          Timer(timeTicker);
  
          //playerPics is a PictureBox array that has all the images stored
          TopMovement(playerPics[0],timeTicker);
      }
  
      private void Timer(int secs)
      {
          timeSec = secs;
          if(secs == 60)
          {
              timeMin += 1;
              timeTicker = 0;
          }
          tbxTimer.Text = "Time: " + timeMin + ":" + timeSec;
      }
  
      private void TopMovment(PictureBox top, int time)
      {
          int y = (int)(time * 1.7);
          int x = (int)(time * 0.3);
  
          if (time &lt; 22 &amp;&amp; timeMin &lt; 1)
          {
              top.Top -= y;
              top.Left += x;
          }
      }
  }
  </code></pre>