Example #1
0
 void controlMouseDown(object sender, MouseEventArgs e)
 {
     _previousControl = null;
     _pressedKey = Keys.LButton;
 }
Example #2
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData.ToString() == "Tab")
            {
                _pressedKey = Keys.Tab;
                _previousControl = GetFocusControl();
            }
            else if (keyData.ToString() == "Tab, Shift")
                _pressedKey = Keys.Back;

            return base.ProcessCmdKey(ref msg, keyData);
        }