I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I’ve tried using IMessageFilter, but even then none of the messages are passed to PreFilterMessage. How do I receive clicks outside a form’s window?
I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I’ve
Share
With thanks to p-daddy in this question, I’ve found this solution which allows me to use ShowDialog: