コード例 #1
0
        private void OnMpdnFormKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.C)
            {
                CloseMedia();
            }

            if (e.Modifiers == Keys.Control && e.KeyCode == Keys.Tab)
            {
                if (!PlayerControl.InFullScreenMode && form.Visible && !form.ContainsFocus)
                {
                    form.Activate();
                    form.FocusPlaylist();
                    Cursor.Position    = new Point(form.Location.X + 100, form.Location.Y + 100);
                    e.SuppressKeyPress = true;
                }
            }
        }