private void textBox1_TextChanged(object sender, EventArgs e) { ((TextBox)sender).Text = ((TextBox)sender).Text.ToUpper(); ((TextBox)sender).SelectionStart = ((TextBox)sender).Text.Length; }the 2nd line (((TextBox)sender).SelectionStart = ((TextBox)sender).Text.Length;)moves the cursor to the end.