private void BindingsTest_KeyDown(object sender, KeyEventArgs e) { if (e.Control) { if (e.KeyData == Keys.Delete) { BtnDel.PerformClick(); } else if (e.KeyData == Keys.Insert) { BtnIns.PerformClick(); } } }
private void BindingsTest_Load(object sender, EventArgs e) { BtnIns.PerformClick(); }