I have one message. When I click X button he don 't kill process but when I make button File -> Close and set to it:
InSim.Close();
Application.Exit();
all works good and process has been killed.
I think that 's:
This doesn 't work:
private void Main_LFS_Tool_FormClosing(object sender, FormClosingEventArgs e)
{
InSim.Close();
while (MessageBox.Show("Exit application?", "", MessageBoxButtons.YesNo) ==
DialogResult.No)
{
}
Application.Exit();
}
My definition of form is:
public partial class Main_LFS_Tool : Form
I make my program in Microsoft Visual C# 2008 Express. I'm learning in C#