put newline in resx file
how can i put spaces in resx
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted Nov 17, 2009, 1:48 AM
1)
/// define new string object, assigning value of new line escape sequence
string newLine = "\n";
2a)
/// use String.Format to add the escape sequence at runtime
MessageBox.Show(String.Format("This is a multiline{0}message.", newLine));
2b)
/// place string into RESX file and call via ResourceManager class
GetString method
MessageBox.Show(String.Format(rm.GetString("multiline"),newLine));