textbox enter後換行
this.textBox1.Multiline = true;//這行要加
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (sender.ToString().IndexOf("\r\n") != -1)
{
textBox1.Text=textBox1.Text.Replace("\r\n","");
textBox2.Focus();
}
}