The Situation is like this: I have multiple textboxes. On the occurrence of textChanged event the textbox should be stored in the array so that I can use it in further functions.
private void txt_TextChanged(object sender, TextChangedEventArgs e)
{
TextBox t;
t = (TextBox)sender;
}
Now I have the textbox which was responsible for the event. Now I have to store this and more to come in an array so that these can be accessed elsewhere in another function.
List<TextBox>rather than aTextBox[]array. But as Msonic implied, it's hard to propose a solution without knowing the underlying problem you want to solve.