Hi Ankit,
I hope you want this,
Two text boxes,
TextBox1 and
TextBox2 with limit 4 respectively.
If I type 4 characters in TextBox1 then automatically focus should move to TextBox2.
For example,
If I want to type 12345678.
I type 1234 in TextBox1, When I press 5, focus should point to TextBox2 and 5678 should be entered in TextBox2, am i right?
If am right then here is the code for you
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (textBox1.TextLength > 3)
{
textBox2.Focus();
}
}
I hope this would help you a bit.
Regards,
RK