So, on the last day or so, I was fixing the error caused by the modal dialogue. I am working on an application that communicates with the server through a Windows message pump. When I use ShowDialog () to display a modal form, the message pump is blocked and none of my messages are processed, but they accumulate in the queue (expected behavior).
However, I recently noticed that if a modal form opens through a click event on a menu item, messages are pumped to the main form and processed. Does anyone know why these messages are not blocked when a modal form is displayed through a click event of a menu item?
EDIT: I should have noticed that I am using C #. How about this; if no one can answer this question, can someone tell me how to investigate it yourself? The only thing I can think of is to look at the call stack. Unfortunately, this hasnโt told me anything yet.
Ed S. source share