其他分享
首页 > 其他分享> > MDI窗体中TextBox RichTextBox等Ctrl C/V快捷键失灵

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)));

 

标签:MDI,Ctrl,Keys,System,快捷键,Forms,Windows,窗体
来源: https://www.cnblogs.com/code1992/p/15824504.html