title: How do I kill a playloop when a thread is killed?
body: <p>Meet Thread:</p>
  
  <pre><code>    public void TimerFunc(){
          ...
          while (true)
          {
    ...
                  sound.PlayLooping();
                  // Displays the MessageBox and waits for user input
                  MessageBox.Show(message, caption, buttons);
                  // End the sound loop
                  sound.Stop();
   ...
  
          }
      }
  </code></pre>
  
  <p>Thread gets started by a button in the main interface, and can get killed by a button in the interface.</p>
  
  <p>How do i get the soundloop to stop if the thread gets killed when waiting for user input?</p>