大马资讯论坛 - 马来西亚中文资讯平台

标题: C# 键盘捷径 Shift+C Control+V - Multiple Modifier Keys [打印本页]

作者: 资讯王    时间: 2011-7-28 22:23
标题: C# 键盘捷径 Shift+C Control+V - Multiple Modifier Keys
C# 键盘捷径 Shift+C Control+V - Multiple Modifier Keys
  1. if (e.KeyCode == Keys.C && e.Modifiers == Keys.Control && e.Modifiers == Keys.Shift)
  2. {
  3.     //Do work
  4. }
  5. else if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control)
  6. {
  7.     //Paste
  8. }
复制代码





欢迎光临 大马资讯论坛 - 马来西亚中文资讯平台 (http://freeinfo.com.my/) Powered by Discuz! X3.3