I feel that this question must have been asked many times before, but I can’t find it. Sorry if I’m right.
The thing is that I have a X button like this at the corner of my application:

I have other confirmation button ( visible= false and enable= false) next to it. When I click on X button I set these properties to true and the button appears.

If now I click on it the form close. But here is my question. How can I hide the confirmation button and disable it again if I click on any other part of my application?
Probably is trivial. Sorry, I’m quite new in all of this.
Thank you very much for helping
I dunno, maybe an event like this?
this.MouseClick += (sender, args) => { this.button1.Visible = false; };