public override void OnKeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { base.OnKeyDown(sender, e); if (e.Handled) { return; } // Control WMP Volume if (e.KeyCode == System.Windows.Forms.Keys.Add) { wmp.settings.volume += 1; _volume.Visible = true; _volume.Text = wmp.settings.volume.ToString(); _volume.FadeOut(); } if (e.KeyCode == System.Windows.Forms.Keys.Subtract) { wmp.settings.volume -= 1; _volume.Visible = true; _volume.Text = wmp.settings.volume.ToString(); _volume.FadeOut(); } if (e.KeyCode == System.Windows.Forms.Keys.Escape) { SingletonSoundCache.Instance.PlaySound(DefaultSoundList.Cancel); RaiseExitEvent(); e.Handled = true; return; } // Next if (e.KeyCode == System.Windows.Forms.Keys.N) { wmp.controls.next(); } // Shuffle Toggle if (e.KeyCode == System.Windows.Forms.Keys.S) { if (wmp.settings.getMode("shuffle")) { wmp.settings.setMode("shuffle", false); shuffleMode = ""; } else { wmp.settings.setMode("shuffle", true); shuffleMode = "S"; } } return; }