The MainWindowHandle property is just a guess based on heuristics

212 · Raymond Chen · Jan. 24, 2022, 3:21 p.m.
A customer had a program written in Windows Forms that wanted the following behavior: When the user minimizes the app, it hides the window. When the user relaunches the app, the second instance finds the existing (hidden) window and makes it visible again. The post The MainWindowHandle property is just a guess based on heuristics appeared first on The Old New Thing....