Q
Qwert
Hello,
I try to call the Close( ) method in the Load event of a Form, but it
doesn't seem to work. Any idea why not? And how do I close a Form in it's
own Load event?
Private Sub frmForm_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Try
Throw New Exception("Close me please.")
Catch
Me.Close()
End Try
End Sub
Thank you.
I try to call the Close( ) method in the Load event of a Form, but it
doesn't seem to work. Any idea why not? And how do I close a Form in it's
own Load event?
Private Sub frmForm_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Try
Throw New Exception("Close me please.")
Catch
Me.Close()
End Try
End Sub
Thank you.