TextBox horizontal scroolbar does not work how I want in Windows Forms
I am writing some text into TextBox but I would like to show horizontal scroolbar when I write something longer than width of TextBox. Unfortunatelly, even with setting Scr开发者_开发技巧ollBars property to Both or Horizontal program just breaks the line and it looks like writing to new line. Any suggestion?
Set WordWrap property value to False.
WordWrap indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.
Refer to the following reference.
Setting the 'WordWrap' property to false should do the trick.
精彩评论