title: C# How to Stop a WindowsMediaPlayer mp3 "Soundtrack" from playing that is on a different form
body: <p>My project is a Windows forms game with a mp3 soundtracks playing in the background, the soundtrack depends entirely on the gamestate/form that the player is in. Currently i have my "Introthemetune" soundtrack playing from launchscreen, however when the user eventually enters the "playing game state"/ new game i need the "Introthemetune" to stop so another one is able to play with no interference. </p>
  
  <p>I know how to make the Introthemetune stop playing from inside the same Form it was instantiated using Introthemetune.controls.stop(). I've also tried accessing the class from the newly instantiated form with no success. </p>
  
  <p>Code inside my LaunchScreen Form and the instantiated class - </p>
  
  <p>WindowsMediaPlayer Introthemetune = new WindowsMediaPlayer();</p>
  
  <pre><code>    public LaunchScreen()
      {
          this.Opacity = 0;
          InitializeComponent();
          Introthemetune.URL = "Finalised Game Soundtrack.mp3";
      }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>private void Gamescreen_Load(object sender, EventArgs e)
      {
  
       Introthemetune.controls.play();
      }
  </code></pre>
  
  <p>I need this code to stop playing from outside of this form. </p>