window forms headache

I am having trouble with which should be a very very simple thing,
all i want to do is when a button is pressed to show a dialog box with about 20
rows of text(help file). Everything i have done has failed and after spending
hours on google(waste of a day off!) im beat. Here are some examples that i have tried.

MessageBox.Show("First line/r/nSecond line");

MessageBox.Show("First line" & Environment.Newline & "Second line")

MessageBox.Show("First line" & vbNewLine & "Second line")

The thing i dont understand is that if I do something like

MessageBox.Show("apples 11111111111111111111111111111111111111111")

it will display apples on its own line then equal out the ones, seems after 70 char it does an auto /n. Any direction will be greatly appreciated.

ps. also tried using vbCrLf but it has failed every time. Tried everything using c++ and c# window forms.

forgot to mention i have tried the char(13) route.
Last edited on
closed account (z05DSL3A)
1
2
3
4
5
6
7
8
9
{
    String^ message = "Line 1.\nLine 2.\nLine 3.\nLine 4.\nLine 5.\nLine 6.\n";
    String^ caption = "Doing lines";
    MessageBoxButtons buttons = MessageBoxButtons::YesNo;
    System::Windows::Forms::DialogResult result;

    result = MessageBox::Show( this, message, caption, buttons );
    //....
}
Works perfectly, ty.
Topic archived. No new replies allowed.