菜单条界面 [英] MenuStrip Interface

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

问题描述

如何添加 MenuStrip 如下图所示?

How can i add MenuStrip Look Like Below picture ?

我的 MenuStrip 如下图:

My MenuStrip is below picture :

谢谢

推荐答案

右键单击工具箱并选择选择项目".勾选 MainMenu 组件.可能不止一个,选择 Directory 列显示 Global Assembly Cache 的那个.

Right-click the toolbox and select "Choose Items". Tick the MainMenu component. There might be more than one, pick the one whose Directory column says Global Assembly Cache.

那是菜单组件的 .NET 1.x 版本.它使用原生 Windows 菜单支持 API,与 MenuStrip 不同,MenuStrip 完全重写以向 Windows 不支持的菜单添加功能.不幸的是,他们没有时间机器来猜测它的未来版本会是什么样子.这也解释了为什么 MainMenu 使您的程序看起来与记事本等其他 Windows 7 小程序非常相似.

That's the .NET 1.x version of the menu component. It uses the native Windows menu support api, unlike MenuStrip which is a complete rewrite to add features to menus that Windows doesn't support. Unfortunately, they didn't have a time machine to guess what the future version of it was going to look like. Which otherwise explains why MainMenu makes your program look very similar to other Windows 7 applets like Notepad.

这篇关于菜单条界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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