Nope, use
LostFocus
event of the
TextBox
.
Do it like this :
public Form1()
{
InitializeComponent();
textBox1.LostFocus += new EventHandler(textBox1_LostFocus);
}
void textBox1_LostFocus(object sender, EventArgs e)
{
MessageBox.Show("This is the text that you entered : " + textBox1.Text);
}
So when the user of your application moves to some other control, you can capture the text entered using the above function.
Hope it helped!