Launch form with parameters: how can I get back information from the called form?

Sounds like he is looking for a callback to the original form. Luckily Jose, has figured this out.

//calling form

 // Create new LaunchFormOptions and set the CallBackToken
        LaunchFormOptions lfo = new LaunchFormOptions();
        // the CallBackMethod allows us to respond to specific callback
        lfo.CallBackMethod = specificCallBackHandler;
        ProcessCaller.LaunchForm(oTrans, "UD01", lfo);



//also on the form
  // handle the response from the specific Callback delegate
    void specificCallBackHandler(object sender, object CallBackArgs)
    {
        // verify there is CallBack args
        if (CallBackArgs == null) return;
        EpiMessageBox.Show("ShipVia form handles callback with message:  " + CallBackArgs.ToString());
    }

//Called Form Customization

//On the Called Form you can Call Back to the calling form with this code
if (UD01Form.LaunchFormOptions != null &&
            UD01Form.LaunchFormOptions.CallBackMethod != null)
            UD01Form.LaunchFormOptions.CallBackMethod(oTrans, "This is a Message from UD01::CallBackMethod delegate");
3 Likes