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);
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top