private void EmailTextBoxKeyDown_Handler(object sender, KeyEventArgs e) { if (e.Key == Key.Tab) { PhoneTextBox.Select(PhoneTextBox.Text.Length, 0); } }
// if enter is pressed in name box, make user select phone number box private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r')// adds to list if "enter" key is pressed { //addToList(); PhoneTextBox.Select(); } }
private void PhoneTextBox_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { PhoneTextBox.Select(PhoneTextBox.Text.Length, 0); }