Question: Here is the code template for a form's FormClosing event handler: Private Sub MainForm _ FormClosing ( sender As Object, e As System. Windows, Forms,
Here is the code template for a form's FormClosing event handler:
Private Sub MainFormFormClosingsender As Object,
e As System. Windows, Forms, FormClosingEventArgs
Handles Me FormClosing
End 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 caseinsensitive test for the secret word.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
