如何在消息框中添加空格和行? [英] How to Add Spaces and Lines in Message Box?

查看:96
本文介绍了如何在消息框中添加空格和行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在消息框中显示一条消息,但它只有一行....


有吗任何方式我可以在消息框显示中的任何地方制作2或3行?我的意思是说我需要在消息框中换行。


例如我的消息应该如下所示:


你有足够的登录尝试,


你试过3次不成功的登录,< br $>

系统终止"


请帮忙,


Hiren

Hi,

I am displaying a message in Message Box but it comes in only 1 line....

Is there any way i can make 2 or 3 lines wherever i want in Message Box display? I mean to say I need Line Break in Message Box.

E.g. My Message is supposed to read as follows:

"You had Enough Attempt of Login,

You have Tried 3 Unsuccessful Logins,

System Terminating"

Please help,

Hiren

推荐答案

尝试使用这个
try to use this
展开 | 选择 | Wrap | 行号


你是伟大的耻辱,


它有效......什么是chr(13)?是换行还是续行?


谢谢好友


Hiren
You are Great Debasis,

It works... What is chr(13) for? is it for Line Break or Next Line?

Thanks Buddy

Hiren


这是更好的使用 vbNewLine 代替chr(13)。
It is better to use vbNewLine in place of chr(13).


这篇关于如何在消息框中添加空格和行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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