Tutorial :New Line in C# Notification (Compact Framework)


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?


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


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!

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »