views:

599

answers:

1

In XP/2003 I had become accustomed to writing my MessageBox.Show(..) code like this :

MessageBox.Show("Title", "Sorry an error has occured!\n" +
                         "You may want to try one of the following:\n\n" +
                         "1. Reboot your machine\n" +  
                         "2. Buy a new machine\n" +  
                         "3. Report your error on StackOverflow.com.\n");

i.e. I formatted the message nicely and readable. If I didnt then it would fill the whole width of the screen and was not very friendly.

Now when the same message box comes up in Vista it is formatted completely differently and it introduces its own linefeeds and generally looks a lot worse.

What is the best practice for this for an application for both Vista and XP - short of writing my own message box class.

What are others doing to overcome this problem

+1  A: 
VonC