(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();
}
}
|
请发表评论