I have a number of text boxes that are dynamically created via code.
I would like to be able to assign a generic event handler to all the textboxes for the text cha
Cast object sender(your textbox which fired event) to TextBox.
If only one property is what you want then write
string propertyName = ((TextBox)sender).Name;
But when more than one property is required, then it is better to create a Textbox variable and use it like.
TextBox txtbox = (TextBox)sender;
Then you can use any property of it like
string propertyName = txtbox.Name;
MessageBox.Show(proptertyName);
MessageBox.Show(txtbox.Content.ToString());