本文介绍了如何禁用默认菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好 在基于Windows的应用程序中,我想为用户提供预览功能.但默认情况下,所有菜单选项文件都可以编辑,查看.在该屏幕上可见.我的代码是
Hi all In my windows based application i want to give preview facility to the user. But defaultly all the menu options file, edit, view. Visible in that screen .my code is
System.Diagnostics.Process.Start(path);我想禁用这些菜单选项.只想查看该附件文件. 如何使其成为可能. 在此先谢谢您.
I want to disable these menu options. Just want to view that attached document. How to make it possible. Thanks in advance.
推荐答案从菜单中删除MenuStrip(如果您不想要的话)(它位于窗体布局的底部,位于窗体外部)边框,可能称为"menuStrip1". Remove the MenuStrip from your form, if you don''t want it (it is at the bottom of your form layout, outside the form borders, probably called "menuStrip1").
请参见此处 [ ^ ].
更多推荐
如何禁用默认菜单项
发布评论