Ian Branch 127 Posted March 18, 2020 (edited) Hi Team, Some time in the not too distant past I sought a method for minimizing the main form but not any open sub forms. I 'sourced' the technique from somewhere but cannot for the life of me remember what was required, nor, as I have the source code of the relevant App it is working in, can I divine what I did to make it work. 😞 It is going to be something simple but I just can't see it. 😞 Appreciate any thoughts/suggestions on the minimizing. Don't need comments on my memory. 😉  Regards & TIA, Ian Edited March 18, 2020 by Ian Branch Correction to Subject. Share this post Link to post
Daniel 417 Posted March 18, 2020 Hi Ian, Â please give your topic a meaningful subject. Share this post Link to post
Lars Fosdal 1792 Posted March 18, 2020 I am trying to remember if I've seen this done in any app before, but I am coming up short? What happens to child windows if main window is set invisible, I wonder? Â Share this post Link to post
Ian Branch 127 Posted March 18, 2020 Hi Lars, You would then need to put something in the Sub forms to make the Mainform visible again. I don't have that. Ian Share this post Link to post
Lars Fosdal 1792 Posted March 18, 2020 One alternative could be to have an permanently invisible main form, so that the perceived mainform also is a child? Share this post Link to post
Ian Branch 127 Posted March 18, 2020 Hi Lars, Yes I have seen that technique but it isn't what I have working here. This is so frustrating. 😞 Ian Share this post Link to post
Lars Fosdal 1792 Posted March 18, 2020 What about setting Owner/Parent of the children to nil? (I am just throwing pasta at the wall here now) Share this post Link to post
Ian Branch 127 Posted March 18, 2020 Hmm. Where does that happen? If it is with this code " TGenreTypesForm.Create(Self).ShowModal" then this works in the Working App. Share this post Link to post
David Heffernan 2345 Posted March 18, 2020 It depends on the window ownership (aka popup parent) relationships between your forms. What is that in your case? Share this post Link to post