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_TextCh anged(object sender, System.EventArg s e)
{
//Here I need to get the name of which texbox was changed
}
private void button1_Click_1 (object sender, System.EventArg s e)
{
int iCnt = 0;
for (iCnt=0;iCnt<=1 00;iCnt++)
{
TextBox iLabel = new TextBox();
iLabel.Parent = panel1;
iLabel.Text = iCnt.ToString() ;
iLabel.Top = (iCnt * 21);
iLabel.Name = ("Form" + iCnt.ToString() );
iLabel.TextChan ged += new
System.EventHan dler(this.textB ox1_TextChanged );
iLabel.Refresh( );
}
}
Thanks
Ivan