CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    151

    make a new line when displaying a messagebox

    I would like to know how to make a new line when showing a message box

    For example: MessageBox(hWnd, TEXT("Line" & newLine), TEXT("Caption"), MB_OK);

    Can anyone help me?

    Thanks

  2. #2
    Join Date
    Sep 2004
    Location
    Italy
    Posts
    389

    Re: make a new line when displaying a messagebox

    Use \n:

    MessageBox(hWnd, TEXT("Line\n"), TEXT("Caption"), MB_OK);

  3. #3
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    151

    Re: make a new line when displaying a messagebox

    Thanks

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

Featured