开发者

C# windows forms textbox wordwrap not working

开发者 https://www.devze.com 2023-04-08 12:51 出处:网络
I have a multiline textbox on my Windows Form. I am writing a very long string separated by \'\\r\'. WHen I set wordwrap = true, it wraps off as expected.

I have a multiline textbox on my Windows Form. I am writing a very long string separated by '\r'. WHen I set wordwrap = true, it wraps off as expected.

BUT when I set wordwrap to false it also wraps off but after a greater length. However, I don't want it to wrap at all.

I have tried changing MaxLength to开发者_如何转开发 a huge number - but it makes no difference.


Just to confirm (as it wasn't clear as the original commentator's name changed): Switching to a RichTextBox will fix word wrap on really long lines.

0

精彩评论

暂无评论...
验证码 换一张
取 消