Error message on shutdown - from unshown winform

44 Views Asked by At

My Winforms Application (consisting of multiple forms), throws an unexpected error during shutdown. The error is from a form that is not shown to the user (frm.show is not done) at any point of time.
Upon checking the logs, I found that the form was receiving 'WM_QUERYENDSESSION' from the OS. Why was the unshown form receiving window messages?

0

There are 0 best solutions below