TextBox回车换行的问题
我想在TextBox上实现按回车键能换行的效果,我把TextBox的Multiline属性设为true,这是我的控件图:

然后我在textBox4_KeyPress中写了如下代码:
if ((int)e.KeyChar == 13)
{
textBox4.Text = textBox4.Text + Environment.NewLine;
}
但是我跟了下,按回车键时,根本不往KeyPress这个事件里走,我想问下各位高手,textbox按回车键实现换行怎么实现?
------解决方案--------------------
你在textbox里面按回车它不是自动回换行吗……