C# 根据控件名动态找控件、获取当前操作控件名
(TextBox) (this.Controls.Find("textbox1", true)[0])
this.Controls["textBox1"].Text
private void txtbox_DoubleClick(object sender, EventArgs e)
{
TextBox selTextBox = (TextBox)sender;
if (selTextBox.Name == "textbox1")
{
EquipmentDlg equip = new EquipmentDlg();
equip.ShowDialog();
}
}