在MessageBox中添加新行 [英] Add New Line in MessageBox

查看:85
本文介绍了在MessageBox中添加新行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我想请你帮助解决这个问题 - 如何使用VB 2005在MessageBox中添加新行。我尝试使用''& vbnewline&'',但仍然无法正常工作。

解决方案


大家好!我想请你帮助解决这个问题 - 如何使用VB 2005在MessageBox中添加新行。我尝试使用''& vbnewline&'',但仍然无法正常工作。



您能告诉我们您尝试过的代码吗? (vbNewLine常量在VB6及更早版本中使用,但在VB2005中可能不正确。)



大家好!我想请你帮助解决这个问题 - 如何使用VB 2005在MessageBox中添加新行。我尝试使用''& vbnewline&'',但仍然无法正常工作。



vbNewLine可能是文件中使用的特殊字符。要在msgbox中添加新行,请设置消息text ="第一行文本" &安培; vbCrLf& "第二行文本



vbNewLine可能是文件中使用的特殊字符。要在msgbox中添加新行,请设置消息text ="第一行文本" &安培; vbCrLf& "第二行文字



正如我所说,我不知道VB2005是如何工作的。但在VB6中,我总是建议使用 vbNewLine 而不是 vbCrLf 。它们实际上具有相同的值,但 vbNewLine 具有更有意义的名称,特别是对于新手。


让我们面对它,除非你有一直在处理电脑,Cr和Lf并不是指任何。因此, VbCrLf 看起来就像一堆乱七八糟的字母。一个有意义的名字更容易记住。


Hi, everybody! I would like to ask for your helps to solve this problem -- How to add new line in MessageBox, using VB 2005. i try using ''&vbnewline&'', but still can''t work.

解决方案

Hi, everybody! I would like to ask for your helps to solve this problem -- How to add new line in MessageBox, using VB 2005. i try using ''&vbnewline&'', but still can''t work.

Can you show us the code you have tried? (The vbNewLine constant is used in VB6 and earlier, but may not be correct in VB2005.)


Hi, everybody! I would like to ask for your helps to solve this problem -- How to add new line in MessageBox, using VB 2005. i try using ''&vbnewline&'', but still can''t work.

vbNewLine maybe special character used in files. To add new line in msgbox, let the message text = "The first line text" & vbCrLf & " The second line text"


vbNewLine maybe special character used in files. To add new line in msgbox, let the message text = "The first line text" & vbCrLf & " The second line text"

As I said, I don''t know how it works in VB2005. But in VB6, I would always recommend using vbNewLine rather than vbCrLf. They actually have the same value, but vbNewLine has the more meaningful name, especially for newbies.

Let''s face it, unless you''ve been dealing with computers for a while, Cr and Lf don''t mean anything. As a result, VbCrLf just looks like a random jumble of letters. A meaningful name is much easier to remember.


这篇关于在MessageBox中添加新行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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