在keypress事件中
private void richTextBox2_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == ' ') { textbox.Focus(); } if (e.KeyChar == System.Convert.ToChar(13)) { e.Handled = true; } }