2010-06-10 59 views
1

我有以下代碼:如何增加字符數限制的Visual Basic警告框

If Not strValidate ="" Then 
    alert("The following information is required:" + vbLf + strValidate) 
    ValidateDocument = False 
    Exit Function 
End If 

變量「strValidate」包含一個長的字符數,所以當警報框顯示,它不顯示整個字符串,其餘字符在警告框中被切斷。

+0

MsgBox或MessageBox將伸展以顯示所有文本。 – systemovich 2010-06-17 13:39:31

+0

我想這會,但這個字符串應用到消息框是超過5000個字符,does not所有,最後它顯示'....' – dipesh 2010-06-18 15:18:48

回答

0

我會建議用Scrollable Label/Textbox編寫自己的Messagebox。互聯網上已經有很多自定義的消息框,所以你可以選擇一個並自定義它們。