Application.Exit() did not exist the application.

  • Thread starter Thread starter Shelby
  • Start date Start date
I'm just now learning NET and about every tutorial I've read (including ones
from MS) say this is how to end the program. Is it OK to use it?
NO!!

Right now I'm doing programs with a single form so is it OK then?

NEVER!!

Close the form with Me.Close() (preferred) or use Application.Exit().
 
Hi Cor,

this is my code:
Private Sub btncancel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btncancel.Click
If cn.State = 1 Then
cn.Close()
End If
Me.Close()
End Sub

And hopefully that's the end... But it's not however.
Is it possible to terminate all function calls also?

Shelby
 
Hi Shelby,

I do not know however for sure not when I do not know how you did call those
functions, if it is intererop and if there and/are multithreads used?

By instance what is cn?

Cor
 
Back
Top