I see what you are saying. I changed the code to Application.Exit() and will test that overnight. Thank you for your help. I will let you know how it goes!
That code is needed. It is an application that does many things and has 16 other forms that can be pulled up by the user. I am only trying to get it to exit between 9 and 10 am on Sunday morning. This code is for the user to exit the program by choice.
No the Form closing is very simple:
Private Sub frmStart_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.Dispose()
End Sub
Sorry for my misquote. Yes, I want the Application to Exit.
I have a Me.Close(). The problem seems to be that it won't actually close like a want it to close. Not sure why.
I have an application that is supposed to shut itself down on Sunday between 9 and 10 am. It does not seem to work. If I run the program and sit and watch it, it will shut down as it is expected. This application runs across a network and there may be 100 instances of it open at any one time...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.