#7758
Support 3
Participant

    Select the button in Formativ Form Designer, change the ModalResult value to mrNone. Alternatively, you can set the dialog ModalResult in the applet:

    ‘Close the dialog when ‘Add’ button pressed
    Sub btnAddClick(Sender)
    MainDlg.modalresult = MROK
    End Sub

    ‘Do not close the dialog when ‘Add’ button pressed
    Sub btnAddClick(Sender)
    MainDlg.modalresult = MRNONE
    End Sub

    Hope this helps.

    Advansys Support