Hi Leon,
Where do you declare the
Private FormEvent As SAPbouiCOM.EventForm = Nothing
FormEvent = SBO_Application.Forms.GetEventForm(FormType)
AddHandler FormEvent.CloseAfter, AddressOf OnAfterFormClose
And also this method
PublicSharedSub OnAfterFormClose(ByVal pVal AsSAPbouiCOM.SBOItemEventArg)
The FormEvent object must still 'alive' when you closed your form.
The easiest way to make sure it is still alive is to declare the FormEvent as a public global variable. Maybe in a module. Declare it with 'Public'
Regards
Edy