Question: In a TextBox I'm monitoring the text changes. I need to check the text before doing some stuff. But I can only check the old text in the moment. How can I get the new Text ?

```
private void textChanged(object sender, EventArgs e)
{
    // need to check the new text
}

```

I know .NET Framework 4.5 has the new `TextChangedEventArgs` class but I have to use .NET Framework 2.0.

Answer: 
Even with the older .net fw 2.0 you should still have the new and old value in the eventArgs if not in the textbox.text property itself since the event is fired after and not during the text changing.

If you want to do stuff while the text is being changed then try the KeyUp event rather then the Changed.
```
private void stIDTextBox_TextChanged(object sender, EventArgs e)
{        
    if (stIDTextBox.TextLength == 6)
    {
        studentId = stIDTextBox.Text; // Here studentId is a variable.

        // this process is used to read textbox value automatically.
        // In this case I can read textbox until the char or digit equal to 6.
    }
}

```