Put newline in resx file
how can i put spaces in resx
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lalit MRank #1,186 · 1.5K reputationPosted Nov 16, 2009, 8:48 PM EST
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));