I have two forms, let's call them form1 and form2. User opens a form2 by clicking on a button on form1. When the form 2 opens, I want to disable that user can click on a form1 and do whatever he wants. I want him to first finish the job on form2 and after he closes the form2 messing around with form1 becomes available again.
It can probably be done somehow by using an events called LostFocus and GotFocus, but I don't know how.
I hope someone will help me.