如何禁用默认菜单项

编程入门 行业动态 更新时间:2024-10-10 10:26:38
本文介绍了如何禁用默认菜单项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 在基于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").

请参见此处 [ ^ ].

更多推荐

如何禁用默认菜单项

本文发布于:2023-11-28 10:34:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642046.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:菜单项

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!