110,568
社区成员
发帖
与我相关
我的任务
分享
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if ((int)e.KeyChar == 13)
{
textBox1.Text = textBox1.Text.Replace("\n", System.Environment.NewLine);
}
}