Here is the code template for a form’s FormClosing event handler:
Private Sub MainForm_FormClosing(ByVal sender As Object,ByVal e As System.Windows .Forms .FormClosingEventArgs)Handles Me.FormClosingEnd Sub
Suppose you want the form to close only if the user knows the secret word, which is water. Write statements in this procedure to ask the user to enter the secret word. If the user enters the correct secret word, the form should close. Otherwise, the form should not close. (Perform a case-insensitive test for the secret word.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.