实现效果:

知识运用:
Control类的Tag属性 //获取或设置包含 有关控件的数据的对象
public object Tag {get;set;}
实现代码:
private void Form1_Load(object sender, EventArgs e)
{
button1.Tag = "该技巧是TAG属性应用";
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(this.button1.Tag.ToString(),"提示:");
}
原文:https://www.cnblogs.com/feiyucha/p/10201773.html