Наследование: System.Windows.Forms.UserControl
        private bool InitializeWindowsMediaPlayerControl()
        {
            try
            {
                DisposeQuickTimeControl();

                wmPlayer = new WindowsMediaPlayerControl();

                wmPlayer.OpenStateChanged += new EventHandler<OpenStateChangedEventArgs>(this.handleOpenStateChanged);
                wmPlayer.PlayStateChanged += new EventHandler<PlayStateChangedEventArgs>(this.handlePlayStateChanged);
                wmPlayer.PlayerError += new System.EventHandler<PlayerErrorEventArgs>(this.handlePlayerError);

                wmPlayer.Visible = false;

                this.Controls.Add(wmPlayer);

                this.PlayerType = PlayerTypes.WindowsMediaPlayer;

                Logger.Info("success");

                return true;
            }
            catch (Exception ex)
            {
                Logger.Error("Error initializing: " + ex);

                return false;
            }
        }
 private void DisposeWindowsMediaPlayerControl()
 {
     if (wmPlayer != null)
     {
         wmPlayer.OpenStateChanged -= this.handleOpenStateChanged;
         wmPlayer.PlayStateChanged -= this.handlePlayStateChanged;
         wmPlayer.PlayerError -= this.handlePlayerError;
         wmPlayer.Dispose();
         wmPlayer = null;
     }
 }