If a form is opened from an other form, can we make Axapta (3.0) close the called form automatically when closing the caller form.
I remembered some old code for making a form truly modal in Axapta, and thought that maybe we could use some of that.
Now the solution presented here, is only good for one called form. but it should be quite easy to implement, that all opened forms open from a parent form, are closed when the parent form is closed, by changing the hwndchild reference to a list or a set of HWND-references, looping through that set or list, checking if each HWND-reference refers to an active window, and then and destroying each window.
A small example code project can be downloaded
As always - USE AT OWN RISK.