MDI窗体中TextBox RichTextBox等Ctrl C/V快捷键失灵

原因:父窗体中ToolStripMenuItem默认的快捷键和系统快捷键冲突

解决方式:注释父窗体中默认的Ctrl+C和Ctrl+V快捷键

xxxDesigner.cs

//this.copyToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));

 
//this.pasteToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));

 

posted @ 2022-01-19 22:44  quanzhan  阅读(153)  评论(0编辑  收藏  举报