在Windows窗体标准的Windows菜单栏 [英] Standard Windows menu bars in Windows Forms

查看:267
本文介绍了在Windows窗体标准的Windows菜单栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,加入的MenuStrip (从工具箱中)到我的外形设计不会产生像一个出现在许多原生Windows应用程序的菜单栏。而我得到像Visual Studio自己的菜单栏。没有的样式设置为的MenuStrip 似乎模仿了更为常见的本机菜单栏。

I noticed that adding a MenuStrip (from the Toolbox) to my form design doesn't yield a menu bar like the one seen in many native Windows applications. Instead I get a menu bar like Visual Studio's own. None of the style settings for MenuStrip appear to mimic the much more common native menu bar.

有没有办法到菜单栏添加到我的Windows窗体应用程序看起来如同一个你在记事本中看到,任务管理器和其他人? (preferably与设计师,但我不介意将它添加编程无论是。)

Is there a way to add a menu bar to my Windows Forms application that looks the same as the one you see in Notepad, Task Manager and others? (Preferably with the designer, but I wouldn't mind adding it programmatically either.)

截图来加以说明:

推荐答案

这是容易的。

转到你的工具箱中,右键单击内的任何地方,然后选择选择项。当对话框加载和显示,向下滚动,直到你看到的MainMenu。添加到工具箱中,你已经有了自己的本机菜单栏!

Goto your Toolbox, right click anywhere inside and select "Choose Items". When the dialog loads and appears, scroll down til you see MainMenu. Add that to the toolbox, and you've got yourself a native Menu Bar!

编程快乐!

这篇关于在Windows窗体标准的Windows菜单栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆