Hi kranthi4uonly,
Handle the TextBox.TextChanged event,usethe SendKeys.Sendto simulate pressingTAB key. Try something like the following:
Code Snippet
private void textBox1_TextChanged(object sender, EventArgs e)
{
TextBox tb = (TextBox)sender;
if (tb.Text.Length == tb.MaxLength)
{
SendKeys.Send("{TAB}");
}
}
Hi kranthi4uonly,
Handle the TextBox.TextChanged event,usethe SendKeys.Sendto simulate pressingTAB key. Try something like the following:
Code Snippet
private void textBox1_TextChanged(object sender, EventArgs e)
{
TextBox tb = (TextBox)sender;
if (tb.Text.Length == tb.MaxLength)
{
SendKeys.Send("{TAB}");
}
}
You can use google to search for other answers