Although I am now getting another error: Type mismatch error. Expected delegate Delegate(MyDialog.MyDialog), but got delegate Delegate( )
I actually pass parameters to a constructor method of the WebDialog when instantiating it. Has the error got something to do with this? So my code is now as follows:
Session.Dialog = New MyDialog(param1, param2, param3)
AddHandler Session.Dialog.Dismissed, AddressOf Self.MyMethod
Thanks a lot! That fixed it.
After following your advice and declaring a MyDialog paramater in the MyMethod signature, I initially tried passing the WebDialog as a parameter after AddressOf as it felt like the intuitive thing to so i.e.