00shoe
Member
- Joined
- Oct 12, 2006
- Messages
- 20
- Programming Experience
- 3-5
Hi,
I search through this forum but I couldn't find a solution to this problem.
My problem is that Application.Exit doesn't work, and the program just continues along as normal.
The General Overview of My Code Follows:
I have also tried Me.Close(), Application.ExitThread() and System.Threading.Thread.CurrentThread.Abort() but the some problem occurred.
Does anyone have any idea what I would be doing wrong?
Thanks!
I search through this forum but I couldn't find a solution to this problem.
My problem is that Application.Exit doesn't work, and the program just continues along as normal.
The General Overview of My Code Follows:
VB.NET:
Private Sub Run()
'Some Code
If problem found (i.e. incorrect data in file) Then
SendEmail()
End If
'Mode Code...
End Sub
Private Sub SendEmail()
'Send Email Code
closeApplication()
End Sub
Private Sub closeApplication()
'Close off other Objects...
Application.Exit()
End Sub
I have also tried Me.Close(), Application.ExitThread() and System.Threading.Thread.CurrentThread.Abort() but the some problem occurred.
Does anyone have any idea what I would be doing wrong?
Thanks!