Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1390
Breaking text up into separate lines
posted

Hi,

I'm using NetAdvantage 10.2 build 2151 and trying to set the Text of a desktop alert so that it is formatted with newlines. For example:

string text = string.Format("{0}\nClassification:{1}\nCaveats:{2}", messageSubject, classification, caveats);

desktopAlert.Show(caption, text)

When I get the desktop alert, the newlines are ignored and the text is just run together on the same line. Is there a way to get the newlines? Do I need to use the FormattedTextUIElement instead?

thanks

Mario