Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Msgbox Text; Wrap to Next Line

    How do I get the message box text to wrap. I have a lot of text, and it appears on one line by default; which looks terrible.

    All help appreciated!
    --Pits

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Msgbox Text; Wrap to Next Line

    You mean wrap in the display dialog?

    Answer: msgbox "Your message." + vbCrLf + "That is continued on the next line."

    Or wrap in the code window?
    Answer: msgbox "Your message." + vbCrLf + _
    "That is continued on the next line."
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  3. #3
    JustCallMeAl
    Guest

    Re: Msgbox Text; Wrap to Next Line

    Set the Wrap property to True and the MultiLine property to True.

  4. #4
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Msgbox Text; Wrap to Next Line

    That applies to a VB textbox or listbox, but not to a messagebox. Kevin's solution is what works for messageboxes.
    Charlotte

  5. #5
    JustCallMeAl
    Guest

    Re: Msgbox Text; Wrap to Next Line

    You're correct. I saw the phrase "message box text" and it registered in my brain as "text box text." Don't know why.

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Msgbox Text; Wrap to Next Line

    Don't feel bad, it happens to me all the time! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Charlotte

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •