How do I force an autotab to the next textbox

  • Thread starter Thread starter Top Gun
  • Start date Start date
T

Top Gun

I have textboxes with unambigous field-lengts, such as single character.
When a valid value is entered into one of these, I would like to autotab to
the next textbox.

What is the best way to do this?
 
If you want to jump to the next control in the tab order then you could do
something similar to this:

private void textBox1_TextChanged(object sender, System.EventArgs e)
{
if (valid)
{
this.SelectNextControl(this.textBox1, true, true, true, true);
}
}
 
Back
Top