Hi,
I have a form which contains about 100 Textboxes but I mapped all their
onTextchanged event to the same procedure. Now I would like to know if it is
possible from the sender argument passed to the procedure to get to know
which of the 100 textboxes was changed.
My code is :
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
//Here I need to get the name of which texbox was changed
}
private void button1_Click_1(object sender, System.EventArgs e)
{
int iCnt = 0;
for (iCnt=0;iCnt<=100;iCnt++)
{
TextBox iLabel = new TextBox();
iLabel.Parent = panel1;
iLabel.Text = iCnt.ToString();
iLabel.Top = (iCnt * 21);
iLabel.Name = ("Form" + iCnt.ToString());
iLabel.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
iLabel.Refresh();
}
}
Thanks
Ivan