ivanomonti Expert Licensed User Longtime User Jul 5, 2023 #1 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
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
Daestrum Expert Licensed User Longtime User Jul 5, 2023 #2 Possibly Code: Sub wf_chat_CloseRequest (EventData As Event) ' do things here End Sub Upvote 0
ivanomonti Expert Licensed User Longtime User Jul 5, 2023 #3 Daestrum said: Possibly Code: Sub wf_chat_CloseRequest (EventData As Event) ' do things here End Sub Click to expand... thank you very much I didn't think it was so trivial, thank you thank you Upvote 0
Daestrum said: Possibly Code: Sub wf_chat_CloseRequest (EventData As Event) ' do things here End Sub Click to expand... thank you very much I didn't think it was so trivial, thank you thank you