原文地址:http://www.huanghengxu.com/Html/Article/204.htm
ContextMenuStrip 是右鍵菜單對(duì)象
ContextMenuStrip 的使用
1.在 Form 中添加 ContextMenuStrip 控件
2.向 ContextMenuStrip 對(duì)象中添加 MenuItem 對(duì)象,MenuItem 就是菜單中的元素
3.每一個(gè)可以綁定右鍵菜單對(duì)象都會(huì)有一個(gè) ContextMenuStrip 屬性,把這個(gè) ContextMenuStrip 對(duì)象設(shè)置給目標(biāo)對(duì)象的 ContextMenuStrip 屬性,這就完成了。
posted on 2010-08-29 22:55
漂漂 閱讀(1132)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
c#開(kāi)發(fā)