开发者

TextBox horizontal scroolbar does not work how I want in Windows Forms

开发者 https://www.devze.com 2023-02-25 13:46 出处:网络
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 prope

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

精彩评论

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