title: Image cosine wave
body: <p>I need help with this problem that I am having. What I am trying to do is make an image move in a cosine wave pattern in C# Windows Forms, but whatever I try never works. This is what I have so far in the timer</p>
  
  <pre><code>dblX = (Double)picture.Left;
  dblY = (Double)picture.Top;
  dblY = Math.Cos(dblX);
  picture.Top = dblY;
  picture.Left +=10;
  </code></pre>
  
  <p>What this does is make the image flash and go up and down very quickly. Any suggestions?</p>