Maximum message size allowed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Abhishek Bhatt
    New Member
    • Sep 2007
    • 36

    Maximum message size allowed

    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?
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    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.

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Originally posted by Abhishek Bhatt
      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

      Comment

      • hariharanmca
        Top Contributor
        • Dec 2006
        • 1977

        #4
        Originally posted by Abhishek Bhatt
        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?

        Comment

        • Abhishek Bhatt
          New Member
          • Sep 2007
          • 36

          #5
          Originally posted by hariharanmca
          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.

          Comment

          • hariharanmca
            Top Contributor
            • Dec 2006
            • 1977

            #6
            Originally posted by Abhishek Bhatt
            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).

            Comment

            • Killer42
              Recognized Expert Expert
              • Oct 2006
              • 8429

              #7
              Originally posted by hariharanmca
              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.

              Comment

              Working...