|
I am developing an application that contains an error database. This contains a list of error numbers, names and text associated with them so knowing an error number can show a MessageBox with the name and text in it.
The problem is that it doesn't recognise '\n' as a new line, instead it writes '\n'. BUT this only happens when the text is called from the database.
If this doesn't make sense here is some code: (C#)
string text = this.thisError.text;
//This will show "Example \n error" MessageBox.Show(text, caption, button, icon);
text = "Example \n error";
//This will show "Example //error"; MessageBox.Show(text, caption, button, icon);
Now "text" is a string for both examples the only difference is one is being called from a database, sent to a struct called thisError where there is a string called text. They contain the same data WHY does it display the '\n' when I want the MsgBox to show a new line.
Help would be appreciate as I am crying (ish) as I write this.
cheers |