C#设置右键菜单的方法
程序员文章站
2024-03-30 21:24:39
本文实例讲述了c#设置右键菜单的方法。分享给大家供大家参考。具体实现方法如下:
using system;
using system.collections.g...
本文实例讲述了c#设置右键菜单的方法。分享给大家供大家参考。具体实现方法如下:
using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.text; using system.windows.forms; namespace windowsapplication1 { public partial class form4 : form { public form4() { initializecomponent(); } private void cuttoolstripmenuitem_click(object sender, eventargs e) { this.textbox1.cut(); } private void form4_load(object sender, eventargs e) { } private void copytoolstripmenuitem_click(object sender, eventargs e) { this.textbox1.copy(); } private void pastetoolstripmenuitem_click(object sender, eventargs e) { this.textbox1.paste(); } private void allselecttoolstripmenuitem_click(object sender, eventargs e) { this.textbox1.selectall(); } } }
希望本文所述对大家的c#程序设计有所帮助。