Have a Modified form VatCountryCode, Generate Dll with DAG, cannot capture AfterModalDialog event from Visual Studio tools
Public Shared Country_CodeF As DynamicsModifiedDictionary.VatCountryCodeMaintenanceForm = DynamicsModified.Forms.VatCountryCodeMaintenance
Public Shared Country_CodeW As DynamicsModifiedDictionary.VatCountryCodeMaintenanceForm.VatCountryCodeMaintenanceWindow = Country_CodeF.VatCountryCodeMaintenance
Sub Initialize() Implements IDexterityAddIn.Initialize
AddHandler Country_CodeW.AfterModalDialog, AddressOf VatCountryCodeMaintenance_AfterModalDialog
End Sub