ow to write new line character \n in resx file (e.g MyFile.resx)?
Example: I have resx file with property MyMessage = "One line\nNextLine"
When I used:
MessageBox.Show(MyFile.MyMessage)
I had a message in one line (without Enter).
Shift + Enter in the resource editor doesn`t work.
If you open the .resx file with the Managed Resources Editor you can press ShiftEnter to enter multi line messages:
If you open the .resx file with a text editor the corresponding entry looks like this:
<data name="MultiLineMessage" xml:space="preserve">
<value>Test
Message</value>
</data>
And calling it with
MessageBox.Show(Properties.Resources.MultiLineMessage);
return this box:
So, everything seems to work as expected. So please re-check if you really have a multi line message in your resource file.