Jul 07, 2010, 7:31 AM
[CLOSED] [1.0] How to display the messages into several lines in Message Box.
Hi,
I need to display the messages into several lines in Message Box. This is the code we are using to display it. Currently it is displaying in 2 lines. But We need that messages as line by line. Could you tell us what is the issue in the code ?
I need to display the messages into several lines in Message Box. This is the code we are using to display it. Currently it is displaying in 2 lines. But We need that messages as line by line. Could you tell us what is the issue in the code ?
<DirectMethod()> _
Public Sub Button_Click()
Dim confirmationMessage As String = String.Empty
Dim schoolYearMessage As String = String.Empty
Dim msgBox As MessageBoxConfig = New MessageBoxConfig()
Dim importmsg As New StringBuilder
importmsg.Append("Ready to import ")
importmsg.Append("test")
importmsg.Append(Environment.NewLine)
importmsg.Append(" Documents.Imported documents will be added to existing documents.")
importmsg.Append(Environment.NewLine)
importmsg.Append("Existing documents will not be disturbed. ")
importmsg.Append(Environment.NewLine)
importmsg.Append("Do you wish to PROCEED ? ")
confirmationMessage = importmsg.ToString
msgBox.Title = "Non-current School Year"
msgBox.Message = confirmationMessage
msgBox.Buttons = MessageBox.Button.OKCANCEL
msgBox.Icon = MessageBox.Icon.INFO
msgBox.Multiline = False
msgBox.Fn = New JFunction()
msgBox.Fn.Fn = "showMessageResultWithOkCancel"
Ext.Net.ExtNet.Msg.Show(msgBox)
End Sub
Last edited by geoffrey.mcgill; Jul 10, 2010 at 2:12 AM.
Reason: add [code] tags