实现效果:

  

知识运用:

  KeyEventArgs类的Control,

  public bool Control {get;}    //获取一个值 该值指示是否曾按下Ctrl键

  KeyCode和Handled属性

实现代码:

        private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.C)
{
e.Handled = true;
MessageBox.Show("Ctrl+C组合键已经被屏蔽","温馨提示");
}
if (e.Control && e.KeyCode == Keys.V)
{
e.Handled = true;
MessageBox.Show("Ctrl+V组合键已经被屏蔽", "温馨提示");
}
if (e.Control && e.KeyCode == Keys.X)
{
e.Handled = true;
MessageBox.Show("Ctrl+X组合键已经被屏蔽", "温馨提示");
}
}

  

最新文章

  1. performSelector和performSelectorInBackground
  2. POJ1129Channel Allocation[迭代加深搜索 四色定理]
  3. php加速运行优化
  4. LANDR:在线母带处理
  5. win7IIS错误修改路径最全的
  6. 修改sqlserver2008中表的schema
  7. JavaScript和php常用语法——切割字符串
  8. CSS3秘笈复习:第六章
  9. stl_container容器和std_algorithm算法相同的函数
  10. 跨域请求携带cookie
  11. cf934C. A Twisty Movement(思维题)
  12. 理解SQL的左连接与右连接
  13. 【猿分享第10期】微信小程序Meetup扫盲专场回顾(转载)
  14. SpringBoot-@PathVariable
  15. domino server端的Notes.ini详解
  16. Solutions_issues in pip
  17. Lucene系列四:Lucene提供的分词器、IKAnalyze中文分词器集成、扩展 IKAnalyzer的停用词和新词
  18. Approximate Inference
  19. 【转】C#调用WebService实例和开发
  20. MvcForum中文版+PostgreSql源码下载

热门文章

  1. 3DMAX 4角色蒙皮
  2. button 获取 cell
  3. 第二十一篇 .NET高级技术之使用多线程(三)
  4. Flask (三) 数据迁移
  5. Linux —— 压缩命令
  6. Jasper_table_resolve multiple copies of table in detail band issue
  7. ubuntu管理apt包的常用命令
  8. 关于ssh的介绍
  9. 使用request实现手工输入验证码登录
  10. vue echarts 大小自适应