想给菜单加个快捷键,
this.toolStripMenuItem2.ShortcutKeys = Shortcut.CtrlF;
this.toolStripMenuItem2.ShowShortcutKeys = true;可是老出错误 1 无法将类型“System.Windows.Forms.Shortcut”隐式转换为“System.Windows.Forms.Keys”。存在一个显式转换(是否缺少强制转换?) D:\项目\WindowsApplication7\WindowsApplication7\Form1.Designer.cs 246 52 WindowsApplication7
教材上是怎么说的
this.toolStripMenuItem2.Shortcut = Shortcut.CtrlF;
this.toolStripMenuItem2.ShowShortcut = true;可是我这不能显示Shortcut这个属性我用的是vs2005
this.toolStripMenuItem2.ShortcutKeys = Shortcut.CtrlF;
this.toolStripMenuItem2.ShowShortcutKeys = true;可是老出错误 1 无法将类型“System.Windows.Forms.Shortcut”隐式转换为“System.Windows.Forms.Keys”。存在一个显式转换(是否缺少强制转换?) D:\项目\WindowsApplication7\WindowsApplication7\Form1.Designer.cs 246 52 WindowsApplication7
教材上是怎么说的
this.toolStripMenuItem2.Shortcut = Shortcut.CtrlF;
this.toolStripMenuItem2.ShowShortcut = true;可是我这不能显示Shortcut这个属性我用的是vs2005
解决方案 »
- 关于Socket 远程连接强制关闭的问题,向高手求助
- 提取html中的链接,正则表达式!
- 用C#如何从excel中读取一列数据,然后存储到txt中
- C#菜鸟现金求助!(非常简单的管理程序)
- 大量数据放到内存表中的问题
- 高手解说下这个类 接口实现的来由,,帮忙,谢谢~~
- 16进制的字符串转换为byte
- asp.net中 用户信息保存在静态变量中合适吗?
- C# 合并任意两个文件成一个文件保存到本地 然后在将他们拆分成原来的两个文件保存到本地
- 有没有字符替换函数?把空格换成 把回车换成<br>
- 大家说说IBM的软件作的好还是MS的软件作的好??因为我发现IBM Rational Rose很大,但运行很快。呵呵。。
- 搞不懂哈
比方说(&A)
就是我们长看到的WINDOWS的做法
this.toolStripMenuItem2.ShortcutKeys = (System.Windows.Forms.Keys)Shortcut.CtrlF;