By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Maximum message size allowed

P: 36
I am using "msgBox" to show a message to the user. The problem is that the message is so big that 't's getting truncated in between. Is there any limitation on the maximum message length? Is there any way to change it?
Sep 24 '07 #1
Share this Question
Share on Google+
6 Replies


Expert 5K+
P: 8,434
In VB6, the limit is 1024 characters. Probably the same in later versions. I don't think you can change it. If you need to, just create your own. It's just a modal window.
Sep 24 '07 #2

QVeen72
Expert 100+
P: 1,445
I am using "msgBox" to show a message to the user. The problem is that the message is so big that 't's getting truncated in between. Is there any limitation on the maximum message length? Is there any way to change it?
Hi,

Create your own customized message.:
Add new form to your project and place a TextBox, populate the textbox with your message text. And show the form in Modal.
TextBox can have max of 64k.

Regards
Veena
Sep 24 '07 #3

hariharanmca
100+
P: 1,977
I am using "msgBox" to show a message to the user. The problem is that the message is so big that 't's getting truncated in between. Is there any limitation on the maximum message length? Is there any way to change it?
Can we able to know what message you are going to display?
Sep 24 '07 #4

P: 36
Can we able to know what message you are going to display?
I am trying to import data from spreadsheet file to the database table. User can upload upto 30 tables at a time. After the whole processing a consolildated message would be shown to the user showing what tables could not be uploaded and due to what reason. So message size can be big.
Sep 26 '07 #5

hariharanmca
100+
P: 1,977
I am trying to import data from spreadsheet file to the database table. User can upload upto 30 tables at a time. After the whole processing a consolildated message would be shown to the user showing what tables could not be uploaded and due to what reason. So message size can be big.
I suggest you to use rich text box to display the bulky text (In message box there is no scroll bars to read message properly).
So whatever message you want to show just write it in text file and load it to rich text box (make the form model).
Sep 26 '07 #6

Expert 5K+
P: 8,434
I suggest you to use rich text box to display the bulky text ...
I agree, also because if you place it in a TextBox or RichTextBox, the user can copy the message for reference purposes, before it disappears forever.
Sep 26 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.