如何在文本框中放置行尾字符 [英] How Do I Put An End Of Line Character In A TextBox

查看:76
本文介绍了如何在文本框中放置行尾字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在第二行中添加行尾字符?


Textbox1.Text =" Hello"

Textbox1.Text =

Textbox1.Text =" World"


谢谢,

Chris Lusardi

How would I put an end of line character in the second line below?

Textbox1.Text = "Hello "
Textbox1.Text =
Textbox1.Text = "World"

Thanks,
Chris Lusardi

推荐答案

textbox1.text" Hello" &安培; vbcrlf& vbcrlf& 世界

textbox1.text "Hello " & vbcrlf & vbcrlf & "World"


我不知道vbcrlf存在。在我的一些程序的顶部,我有

dim crlf as string = Chr(13)& Chr(10)

猜我不需要,但现在我必须输入vbcrlf而不是crlf。


Ahmed写道:
I didn''t know vbcrlf existed. At the top of some of my programs I have
dim crlf as string = Chr(13) & Chr(10)
guess I don''t need that but now I have to type vbcrlf instead of crlf.

Ahmed wrote:
textbox1.text" Hello" &安培; vbcrlf& vbcrlf& 世界
textbox1.text "Hello " & vbcrlf & vbcrlf & "World"



我也在我的代码中使用了艾哈迈德的例子。

I use Ahmed''s example in my code as well.


这篇关于如何在文本框中放置行尾字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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