Quote Originally Posted by Mojtaba View Post
I realized that by closing the tabs, we don't completely exit the form and only hide the form
Isn't closing the full form better than hiding it?
Why do you say that? In your example the question to the user "Are you sure you want to exit?" would never appear if the form was not closing.

The form Unload even happens when the form is unloading, not just hiding.