在C#中显示和使用MenuStrip [英] display and use MenuStrip in C#

查看:417
本文介绍了在C#中显示和使用MenuStrip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要右键单击显示MenuStrip并查看在Windows系统中复制,粘贴,删除,移动的选项,但在运行应用程序时不知道如何显示。

I need to display a MenuStrip right click and see the options to copy, paste, delete, move, and in the Windows system, but do not know how to display when running the application.

推荐答案

将ContextMenuStrip添加到表单中,并在设计器中为其设置适当的控件ContextMenuStrip属性。将菜单项添加到CMS,当您右键单击控件时,它们将出现。
Add a ContextMenuStrip to your form, and set the appropriate controls ContextMenuStrip property to it in the designer. Add your menu items to the CMS and they will appear when you right click the control.


这篇关于在C#中显示和使用MenuStrip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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