Ctrl+S 保存数据

 private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == (Keys.ControlKey|Keys.S))
            {
                bindingNavigatorApplyItem1.PerformClick();
            }
            else
            {
                if (e.KeyCode == Keys.F1)
                {
                    hr_dept_exch_modify.Form1 of = new hr_dept_exch_modify.Form1();

                    of.ShowDialog();
                }

            }
        }

你可能感兴趣的:(object)