title: Microsoft.DirectX.AudioVideoPlayback program not working
body: <p>I'm trying to write a simple program that I'm going to be using inside another program for playing back audio and video files using the Microsoft.DirectX.AudioVideoPlayback.dll file. I've got the code listed below since it doesn't have to be incredibly complex. The problem that I am having is that... well, the program does nothing. Not even the main window shows up and I don't know why. I'm using .Net 4.0 and the DirectX DLL version says it's 1.0.2902.0. I tried moving the initialization for the audio and video files to different places (The load event and the button press event specifically). When in the button press event, the form loads, but as soon as I press a button, the program hangs. No errors or anything. Anyone know what is going on here? If someone has a better idea for playing audio and video files, I'm willing to consider that too.</p>
  
  <pre><code>using Microsoft.DirectX.AudioVideoPlayback;
  using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  
  namespace MediaPlayer
  {
      public partial class Player : Form
      {
          Audio derp;
          Video herp;        
          public Player()
          {
              InitializeComponent();
              this.derp = new Audio("&lt;Audio File Name&gt;");
              this.herp = new Video("&lt;Video File Name&gt;");
              this.herp.Owner = this.panel1;            
          }
          private void btnPlayPauseStop_Click(object sender, EventArgs e){            
              switch(((Button)sender).Text){
                  case "Play":
                      if (!herp.Playing)
                          herp.Play();
                      break;
                  case "Pause":
                      if (!herp.Paused)
                          herp.Pause();
                      break;
                  case "Stop":
                      if (!herp.Stopped)
                          herp.Stop();
                      break;
              }
          }
          private void Player_Load(object sender, EventArgs e)
          {            
  
          }
      }
  }
  </code></pre>