I think it would indeed be a good approach to pass a value to your form and then display the IWAdvMessageDialog.
What exactly is not working with using this technique?
Is it directly related to displaying the IWAdvMessageDialog or with passing the value to the form?