[CLOSED] [1.0] How to display the messages into several lines in Message Box.

  1. #1

    [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 ?

    <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
  2. #2
    Seperate by "</br>" ?

Similar Threads

  1. Replies: 49
    Last Post: Dec 04, 2012, 12:25 PM
  2. Replies: 3
    Last Post: Jun 22, 2011, 7:37 PM
  3. Replies: 10
    Last Post: May 13, 2011, 2:30 PM
  4. Replies: 0
    Last Post: Mar 21, 2011, 3:55 PM
  5. Message box with multipal error lines
    By harshad.jadhav in forum 1.x Help
    Replies: 0
    Last Post: Jun 02, 2010, 10:11 AM

Posting Permissions