void controlMouseDown(object sender, MouseEventArgs e) { _previousControl = null; _pressedKey = Keys.LButton; }
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); }