hi
i am using a server that remain working when i close the window
Please , how to stop the process
Thank you
Printable View
hi
i am using a server that remain working when i close the window
Please , how to stop the process
Thank you
There are really only two reasons that your process wouldn't exit:
1. You have hidden a form instead of closing it.
2. You have a second foreground thread running.
Which is it in your case?
No i press the X button , but the process keeps working
maybe because i have a server / client form
is there a property for the form to close it with the process
i thought about making a button that contain Me.close , but this is not working !
vb Code:
Public Class Form1 Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing Form1.Close() Form2.Close() Form3.Close() Form4.Close() 'Your other forms.' End Sub End Class
As I've explained, there are really only two reasons that your app wouldn't be closing. There is no property that is stopping it closing that you can change to fix it. The problem is that you either have hidden a form instead of closing it or else you have another foreground thread running.
What is the shutdown mode of your app set to in the project properties and exactly what forms do you use and how? Do you maybe have a login form as your startup form that you then hide instead of closing to stop the app shutting down straight away? Something like that?