Results 1 to 4 of 4

Thread: Carriage Return in MessageBox (RESOLVED)

  1. #1

    Thread Starter
    Junior Member Novice's Avatar
    Join Date
    Nov 2003
    Location
    Stuttgart
    Posts
    19

    Question Carriage Return in MessageBox (RESOLVED)

    Hello again

    I want to build a MessageBox, which isn't the problem.
    But how can I insert a carriage Return, so that the text looks like this:

    This is my text,
    isn't it cute?

    and not like this:

    This is my text, isn't it cute?

    Thanks

    And please excuse my English, I'm just a German
    Last edited by Novice; Nov 6th, 2003 at 12:07 PM.
    I know that I know nothing, therefore I know something.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    There are a number of different characters that work as a carriage return. I like to use ControlChars.Newline but CrLf or Cr may fit the bill also.

    Msgbox("This is my text," & ControlChars.Newline & "isn't it cute?")

  3. #3
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Thumbs up

    I've always used vbCrLf
    ~Peter


  4. #4

    Thread Starter
    Junior Member Novice's Avatar
    Join Date
    Nov 2003
    Location
    Stuttgart
    Posts
    19
    Thanks,

    both solutions work fine.
    I know that I know nothing, therefore I know something.

Posting Permissions

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



Click Here to Expand Forum to Full Width