如何增加字符数限制的Visual Basic警告框
问题描述:
我有以下代码:如何增加字符数限制的Visual Basic警告框
If Not strValidate ="" Then
alert("The following information is required:" + vbLf + strValidate)
ValidateDocument = False
Exit Function
End If
变量“strValidate”包含一个长的字符数,所以当警报框显示,它不显示整个字符串,其余字符在警告框中被切断。
答
我会建议用Scrollable Label/Textbox编写自己的Messagebox。互联网上已经有很多自定义的消息框,所以你可以选择一个并自定义它们。
MsgBox或MessageBox将伸展以显示所有文本。 – systemovich 2010-06-17 13:39:31
我想这会,但这个字符串应用到消息框是超过5000个字符,does not所有,最后它显示'....' – dipesh 2010-06-18 15:18:48