View Full Version : C# Display text in multiple lines.

09-13-2012, 11:11 PM
I need help.. I am new in C#, and want to know how I can get multiple lines in a message Box... The program consist in a form with a button that thisplays all my courses and instructors in a messagebox...when click.
Thanks guys....

09-14-2012, 03:53 AM
when you format your string you just escape...
*note this syntax is probably wrong, I don't have VS open

MessageBox.Show("The courses I have are:\nEnglish\nProgamming", "My Caption", MessageBoxButtone.OK);

link here (http://msdn.microsoft.com/en-us/library/0x49kd7z(v=vs.100).aspx)

09-14-2012, 03:39 PM
I'll try.. thanks for your help.. :)