I create a form in code and I would like the closeform event to fire when the form is closed, but I have no idea how to proceed, do you have an example to follow?
B4X:
Dim wf_chat As Form
wf_chat.Initialize("wf_chat",600,600)
wf_chat.RootPane.LoadLayout("frame_chat")
wf_chat.Resizable=False
wf_chat.Title = "Chat AI-MIASMART"
wf_chat.Show