when I close the application from task management. I have discovered that he keeps running in windows xp for a few minutes. I have already Search the forum but found nothing that comes close to it.
I use .net 2.0 because it is often already older systems.
I hope you are able to help me.
I use also a Form_closing void :
private void Main_FormClosing(object sender, FormClosingEventArgs e) { if (e.CloseReason == System.Windows.Forms.CloseReason.TaskManagerClosing || e.CloseReason == CloseReason.WindowsShutDown) { Process.GetCurrentProcess().Kill(); } else { DialogResult result = new DialogResult(); result = MessageBox.Show("Weet je zeker dat je de interface wil sluiten? Hiermee word de automatische werkening gestopt!!", "Afsluiten", MessageBoxButtons.YesNo, MessageBoxIcon.Stop); if (result == DialogResult.No) { e.Cancel = true; } else e.Cancel = false; } }
System.Windows.Application.Current.Shutdown();
我在保持打开状态的连接中发现了问题
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.