views:

762

answers:

2

Hi,

I'm trying to use a Notification control in a smart device C# project, but I can't seem to get a new line - I have tried using \n, \r\n and System.Environment.NewLine and none of these work - everything is still showing up on a single line in the standard Visual Studio 2008 emulator. How do I get a new line to show up?

+4  A: 

Instead of plain text have you tried using HTML and < br > as a new line? See this for reference: http://msdn.microsoft.com/en-us/library/microsoft.windowsce.forms.notification.text.aspx

Fiur
It worked - thank you!
Ivan
@Ivan you should mark this as the accepted answer if this has worked for you!
OneSHOT
I spent the last 10 minutes looking for the 'mark as accepted answer' button all over the place, but couldn't find it - Firefox wasn't showing it for some reason. Tried again in Chrome just now and finally found it. Thanks again to Fiur and Thorsten for the speedy responses!
Ivan
A: 

The notification control uses HTML. You can pass entire HTML documents. To insert newlines, just use < br >. You may even add forms and stuff to allow user input!

Thorsten Dittmar
Yup, that did the trick. Using HTML syntax to create forms sounds pretty out there but for now I'm just happy to have a new line :)
Ivan