C#設(shè)置右鍵菜單的方法
更新時(shí)間:2015年06月11日 12:34:14 作者:zhuzhao
這篇文章主要介紹了C#設(shè)置右鍵菜單的方法,實(shí)例分析了C#設(shè)置右鍵菜單的相關(guān)技巧,需要的朋友可以參考下
本文實(shí)例講述了C#設(shè)置右鍵菜單的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
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(); } } }
希望本文所述對(duì)大家的C#程序設(shè)計(jì)有所幫助。
您可能感興趣的文章:
- C#實(shí)現(xiàn)基于XML配置MenuStrip菜單的方法
- C#自定義控件添加右鍵菜單的方法
- Android仿微信菜單(Menu)(使用C#和Java分別實(shí)現(xiàn))
- C#使用XML序列化操作菜單的方法
- C#遞歸讀取XML菜單數(shù)據(jù)的方法
- 基于C#實(shí)現(xiàn)的仿windows左側(cè)伸縮菜單效果
- 使用c#開發(fā)公眾平臺(tái)自定義菜單功能
- c# winform讀取xml文件創(chuàng)建菜單的代碼
- c# TreeView添加右鍵快鍵菜單有兩種方法
- asp.net(C#)生成無限級(jí)別菜單
- C#實(shí)現(xiàn)DataList里面嵌套DataList的折疊菜單
相關(guān)文章
DevExpress之餅狀圖突出(Explode)設(shè)置實(shí)例
這篇文章主要介紹了DevExpress之餅狀圖突出(Explode)設(shè)置方法,以實(shí)例形式展示了餅狀圖突出設(shè)置的具體實(shí)現(xiàn)過程,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2014-10-10C#中通過API實(shí)現(xiàn)的打印類 實(shí)例代碼
這篇文章介紹了,C#中通過API實(shí)現(xiàn)的打印類 實(shí)例代碼,有需要的朋友可以參考一下2013-08-08c#對(duì)XML文檔的創(chuàng)建與增刪改查的示例代碼
這篇文章主要介紹了c#對(duì)XML文檔的創(chuàng)建與增刪改查的示例代碼,文中講解非常細(xì)致,幫助大家更好的理解和學(xué)習(xí),感興趣的朋友可以了解下2020-07-07