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.
精彩评论