private void dataGridView1_MouseEnter(object sender, EventArgs e) { //注册热键Ctrl+C,Id号为100。。 HotKeysManager.RegisterHotKey(Handle, 100, HotKeysManager.KeyModifiers.Ctrl, Keys.C); //注册热键Ctrl+V,Id号为101。 HotKeysManager.RegisterHotKey(Handle, 101, HotKeysManager.KeyModifiers.Ctrl, Keys.V); }
private void FrmProductsFullSearch_MouseEnter(object sender, EventArgs e) { //注册热键Ctrl+C,Id号为100。。 HotKeysManager.RegisterHotKey(Handle, 100, HotKeysManager.KeyModifiers.Ctrl, Keys.C); //注册热键Ctrl+V,Id号为101。 HotKeysManager.RegisterHotKey(Handle, 101, HotKeysManager.KeyModifiers.Ctrl, Keys.V); }