当内容超出范围时在文本框中显示滚动条C# [英] Display scroll bar in textbox when contents are beyond the bounds C#

查看:31
本文介绍了当内容超出范围时在文本框中显示滚动条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天全站免登陆