texboxt段落标签 [英] texboxt paragraph tags
本文介绍了texboxt段落标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个用于输入用户文本的文本框.默认的asp文本框似乎不包含回车符或段落.如何做呢?在Web项目VS中,我也找不到richtextbox(不确定richtextbox是否可以工作).
Hi,
I have a textbox for user text entry. Default asp textbox seems not containing carriage return or pharagraphs. How can it be done? In web project VS I could not find richtextbox too (not sure if richtextbox would work).
Kind Regards.
推荐答案
您是否将TextMode属性设置为MultiLine?
Do you have the TextMode property set to MultiLine?
对于System.Windows.Forms or WPF
:
ForSystem.Windows.Forms or WPF
:
myTextBox.AcceptsReturn = true;
ASP.NET:
将TextMode设置为Multiline
ASP.NET:
Set TextMode to Multiline
这篇关于texboxt段落标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文