My winforms application consists of multiple forms, but the user is only presented with one form at a time.
In the background, the application might be using functions and procedures from other forms.
The issue is, one of these background forms is preventing my system shutdown by throwing error. The form in question here, was not presented(.shown() not done).
I tried finding the root cause of the issue, but could not find anything relevant.
Is anyone aware about why an unshown form is receiving WM_QUERYENDSESSION from the os?