长文本的最佳工具是什么? [英] what is the best tools to have a long text?

查看:96
本文介绍了长文本的最佳工具是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目中使用长文本,但我不知道Visual Studio工具箱中的最佳工具是什么,我使用了标签,但由于我的文本太长而无法正常工作,我该怎么办?

解决方案

使用文本框...

您可以添加滚动条(垂直和/或水平)和/或启用换行.如果您希望它是只读的,也可以这样做.您也可以使用RichTextBox,但除非需要更多高级功能,否则TextBox可能是您的最佳选择.


Rich Text Box是我认为的最佳选择.

I want to use a long text in my project but i do not know what is the best tool in visual studio toolbox, i used a label but it does not work good because my text is long, what can i do?

解决方案

Use a TextBox...

You can add scrollbars (vertical and/or horizontal) and/or enable wrapping. If you want it to be readonly, you can do that too. You could also use a RichTextBox, but a TextBox is probably your best choice unless you have the need for more advanced features.


Rich Text Box is the best option in my opinion.


这篇关于长文本的最佳工具是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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