开发者

C# windows forms textbox wordwrap not working

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜