it gives me an error every time i close my app's.
im very new in this thing..pls. help me..:cry:
Printable View
it gives me an error every time i close my app's.
im very new in this thing..pls. help me..:cry:
You should post some code that you suspect it errors out(in closing or under that button event handler) . First , if you didn't use any try-catch block , then you should try so you can get more descriptive error messages .
thanks pirate for the reply.
ok i got it.
why it gives me an error?
VB Code:
Private Sub DepartmentEntry_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing cn.Close() me.close()-----> this gives me an error. error:[i]Exception of type System.StackOverflowException was thrown [/i] End Sub
Because Me.Close() fires the Closing event, which in turn calls Me.Close(), which fires the Closing event, and so on.
And there's the perfect example of a stack overflow.