在文本框中显示滚动条时,内容是登天C# [英] Display scroll bar in textbox when contents are beyond the bounds C#

查看:264
本文介绍了在文本框中显示滚动条时,内容是登天C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以显示/隐藏在文本框中滚动条只有在文本框中的行数比显示的行数多?

Is it possible to show/hide the scroll bar in a text box only when the line count in the text box is more than the number of lines displayed?

推荐答案

考虑使用 RichTextBox的 - 它具有内置的这种行为

Consider using the RichTextBox -- it has that behavior built in.

这篇关于在文本框中显示滚动条时,内容是登天C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆