本文介绍了如何在文本框中打断文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
盖兹.
我发现如何难以在文本框中破坏一条语句(例如:如果我编写textbox1.text-信息技术"''),那么这两个词应放在单独的行中显示,例如
(信息
技术).我为此竭尽全力,但我只是在同一点旋转
hi guyz.
I find how to break a statement difficult in the textbox( for example: if i write textbox1.text - ''''information technology'''') so this two words should be display in a seperate line, like
(information
technology). I tried my best for that but i''m just rotating in the same point
推荐答案
textbox1.Text = yourString.Replace(" ", "\n")
(\n
可能需要为\r\n
,我不记得TextBox是如何处理它的.)
(The \n
may need to be \r\n
, I don''t remember how TextBox handles it.)
Textbox1.Text = "This is a " & Environment.Newline & "Test to see if it works"
Textbox1.text = textbox1.text.replace( " ", vbcrlf )
这篇关于如何在文本框中打断文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!