private void IP3_KeyDown_1(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { IP4.Focus(); } }
private void IP3_TextChanged(object sender, EventArgs e) { //Get text from textbox string text = ((TextBox)sender).Text; //Do what ever it is you want to do to edit the text if (text.Length == 3) { IP4.Focus(); } else if (text.Length == 0) { IP2.Focus(); } }