I am using 2 text boxes which will input int digits to max length of 3. How can I pass a mouse pointer from first text box to the second one when 3 digits were entered?
I am trying to do it on TextChange event, but I’m not sure how to check when 3rd digit was checked…
public partial class PingIPRange : Form
{
public PingIPRange()
{
InitializeComponent();
txtF1.TextChanged += new EventHandler(NextField);
txtF2.TextChanged += new EventHandler(NextField);
}
private void NextField(object sender, EventArgs e)
{
// Well, I have no idea how to start with this...
}
}
Once
txtF1.Text.Length == 3, you can usetxtF2.Focus()in order to ‘move the cursor’ to the 2nd textboxEDIT: