I am not able to get the exit window button to terminate once I click on it.
I am not sure what I am doing wrong.
This is the code I am using for it: btnExitWindow.Enabled = True. Everything else is working fine when I run the program. Could anyone help.

Private Sub btnExitWindow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExitWindow.Click
' This code is executed when the user clicks the
' exit button. The exit window button terminates
' and closes the application.

btnBankingHours.Enabled = False
btnExitWindow.Enabled = True

End Sub
End Class