I was trying to create an overlay experience by using 2 forms. ie There is a form Form1 in the background which would be a bit transparent and it would open a model window Form2 using ShowDialog which would show the overlay.
This all works fine, but I wanted to close both forms when anyone clicks the Form1. I tried to add a click event handler for Form1 but that doesnt get fired when Form2 is open and we click on Form1. Instead what we get is window's way of telling us that this window is currently behind the scenes.
Is there any way of firing any event or getting any notification when Form1 is clicked.