I am trying to format the text of my alert with line breaks but it's not working. How can I put line breaks in my text. The sample below does work with the vbCrLf.
Dim daw As New Infragistics.Win.Misc.UltraDesktopAlertShowWindowInfodaw.Caption = ta.SUBJECTdaw.FooterText = ""daw.Key = ta.IDdaw.Text = "Start: " & ta.DATETIMESTART.ToString("MM/dd/yyyy h:mm tt") & vbCrLf & vbCrLf & ta.DESCRIPTIONMe.UltraDesktopAlert1.Show(daw)
I'm not exactly sure what your question is; you are asking about inserting line breaks in the UltraDesktopAlert's Text, but are also saying that using vbCrLf (which is what I was going to suggest) is working? Can you please clarify what you are looking for?
korazy said:The sample below does work with the vbCrLf
Assuming this was intended to read, "The sample below does not work with the vbCrLf", try the System.Environment.NewLine constant instead.
Sorry, I didn't realize I left out the very important word 'not' from my original post. I apologize for the confusion.
I realized that I need to use HTML formating with that control after posting my original question. Wrapping my text in <span> tags with <br/> for line seperaters has worked.
This workaround works for me!! Thank you a lot....
Really annoying that scape codes like "\r\n" or Environment.NewLine does not work with UltraDesktopAlert.
He is asking how to place text lines into new lines using the UltraDesktopAlert control. Currently scape codes and Environment.NewLine does not work.
Following modules are not configured yet:
...where Indexer, Searcher and Manager text lines MUST to appears in a line each ones.