Exit application?
Posted: Sat Sep 09, 2017 4:09 pm
Hello,
Seems sometimes we can start and exit our app without problems
but then sometimes we get a error and the app just crash without exit it
why???
search on net but not really a solution found :(
anyone?
'used
https://drive.google.com/open?id=0B37cl ... XRSNTlxMzQ
Seems sometimes we can start and exit our app without problems
but then sometimes we get a error and the app just crash without exit it
why???
search on net but not really a solution found :(
anyone?
'used
Code: Select all
'tried again
Private Sub FrmLogin_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
Try
If MyFunctions.IsExit = True Then
Util.displayMessage("Do you really want to exit from '" & MyFunctions.ProjectName & "'?", MyFunctions.ProjectName, "YesNo")
If MessageValue = 3 Then
MyFunctions.IsExit = False
e.Cancel = True
ElseIf MessageValue = 2 Then
e.Cancel = False
Environment.Exit(0)
End If
Else
e.Cancel = False
End If
Catch ex As Exception
e.Cancel = False
Environment.Exit(0)
End Try
End Sub
Code: Select all
keeps failing Private Sub FrmLogin_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
e.Cancel = True
Try
If MyFunctions.IsExit = True Then
Util.displayMessage("Do you really want to exit from '" & MyFunctions.ProjectName & "'?", MyFunctions.ProjectName, "YesNo")
If MessageValue = 3 Then
MyFunctions.IsExit = False
e.Cancel = True
ElseIf MessageValue = 2 Then
e.Cancel = False
End
End If
Else
e.Cancel = False
End If
Catch ex As Exception
e.Cancel = False
End
End Try
End Sub
https://drive.google.com/open?id=0B37cl ... XRSNTlxMzQ