why The process still on Windows Task list manager after close programme ?
i use login Form.cs
[STAThread]
static void Main()
{
This is because the application message loop is associated with your Login
form (Application.Run(new Login())
does this), so you need to close the form which started the application to end the process.
Alternatively, you could just call LoginForm.Show()
, before Application.Run
, store credentials somewhere and then call Application.Run(new Main_Usr)