开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜