title: Pause/Play MP3 file in C# using WMP
body: <p>I am once again a bit stuck in my practising.
  I want an MP3 file to play when i open my program - I can do that, i got music.
  I also want a checkbox which allows to pause the music - But either I'm very tired, or the thing won't work - Nothing happens when i check/uncheck it. I've done it like this:</p>
  
  <pre><code>public void PlayPause(int Status)
       {
          WMPLib.WindowsMediaPlayer wmp = new WMPLib.WindowsMediaPlayer();
          switch (Status)
          {
              case 0:
                  wmp.URL = "Musik.mp3";
                  break;
              case 1:
                  wmp.controls.play();
                  break;
              case 2:
                  wmp.controls.pause();
                  break;
          }
      }
  </code></pre>
  
  <p>Upon opening the program, the method is called with case 0. Music plays. All good.
  However this doesn't work, and i don't get why, as it is pretty simple code.</p>
  
  <pre><code>        public void checkBox1_CheckedChanged(object sender, EventArgs e)
      {
          if (checkBox1.Checked == true)
          {
              PlayPause(2);
          }
          else if (checkBox1.Checked == false)
          {
              PlayPause(1);
          }
      }
  </code></pre>
  
  <p>Any idea as to why checking the checkbox doesn't pause/unpause the music?</p>