why The process still on Windows Task list manager after close programme ?
i use login Form.cs
[STAThread]
static void Main()
{
this.Hide()
doesn`t kill the window.
So it remains hidden and process remains in memory. this.Close() closes the window and removes its object from memory.
It is better to do something like this:
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var l = new Login();
l.ShowDialog();
if(l.Passed)
Application.Run(new Login());
}
And implement Passed property inside login window.
By the way, do you have any multithreading inside? It is another source of errors of this type.