I have created a feature in my Windows Forms application to open forms on their last position when they were closed. There are around 100+ forms in the application. All forms inherit from my own form say FormX. I coded the Shown and FormClosing events of the base form and all child forms open on their last saved position ... but the problem is: form first opens on the default location that is set at design time and then it moves to the last saved position. This creates a blink which is little annoying. The only good place is to re-position forms is the Load event but i can't find a smart way to place a statement in the Load event of all forms ... without opening 100+ forms. The idea is to make a method (to reposition form) in the base form and call it from the Load event of child forms. Please suggest if there is any smart way of doing it? App details: Windows Form application in .Net 7, C#, Visual Studio 2022 (ver 17.7.4)
Any suggestion to place a statement in Load event of all forms without opening them individually.