Skip to Content
0
Former Member
Aug 25, 2006 at 07:22 PM

C# Multiline MessageBox

543 Views

\n doesn't work.

Is there any trick for me to add make a Message in MultiLines ?

I tried \r, \n, Environment.NewLine which is the same as \n anyway, and the message doesn't appear if I put any of these.

Mess = "This is a test...\n";

Mess += "To see if a multiline text works...";

int iReturnValue = SBO_Application.MessageBox(Mess, 2, "&Yes", "&No", "");

This doesn't show anything and go right through the line.

but just one line works 😔