ContextMenuStrip简单使用
来源:互联网 发布:中国网络部队61398 编辑:程序博客网 时间:2024/05/22 06:27
(1)来源
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
(2)继承层次
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
System.Windows.Forms.ScrollableControl
System.Windows.Forms.ToolStrip
System.Windows.Forms.ToolStripDropDown
System.Windows.Forms.ToolStripDropDownMenu
System.Windows.Forms.ContextMenuStrip
(3)重要成员
.Items :获取属于ToolStrip 的所有项。
Show(Point) :相对于指定的屏幕位置定位ToolStripDropDown。
(4)例子
//在Form_Load响应函数中
contextMenuStrip1.Items.Add("apple");
contextMenuStrip1.Items.Add("banana");
contextMenuStrip1.Items.Add("pear");
//在鼠标按下响应函数中
if (e.Button == MouseButtons.Right)
{
contextMenuStrip1.Show(Cursor.Position);
}
- ContextMenuStrip简单使用
- winform中contextMenuStrip使用
- ContextMenuStrip 菜单的使用技巧
- datagridview中 ContextMenuStrip的使用
- PopupMenu和ContextMenuStrip右键菜单使用
- C#如何使用右键菜单【contextMenuStrip】
- arcengine onmouseup使用contextmenustrip添加右键菜单
- VS2008 下弹出菜单ContextMenuStrip控件的使用
- new ContextMenuStrip
- ContextMenuStrip 类
- c# winform----ContextMenuStrip
- C# Winform contextMenuStrip 快捷键
- contextMenuStrip添加菜单项
- c# ContextMenuStrip控件
- 快捷菜单contextMenuStrip
- TreeView与ContextMenuStrip
- ContextMenuStrip 中添加子菜单
- Winforms: ContextMenuStrip中的内存泄露
- 系统管理,磁盘添加
- VI配置文件
- GetProcAddress
- 端口大全及端口关闭/打开方法(上)
- Oracle函数translate()的用法
- ContextMenuStrip简单使用
- ExtJs 精典布局
- 常用字符集编码详解:ASCII 、GB2312、GBK、GB18030、UTF-8、unicode
- 端口大全及端口关闭/打开方法(下)
- 网址。
- 使用jQuery和YQL,以Ajax方式加载外部内容
- linux内核支持pppd
- java 创建文件和目录
- unix: Sunos Solaris显示中文乱码,使用SecureCRT连接正确显示中文