I have a published application in C#. The problem here is whenever I close the main form by clicking on the red exit button, it closes the form but it doesn't close the application. I found this out when I tried shutting down the computer, hopeful that the application I made was running smoothly then I was bombarded by a lot of child windows with which I have put MessageBox
Alerts.
I tried Application.Exit
but it still calls all the child windows and alerts and I don't know how to use Environment.Exit
and which integer to put into it.
By the way, whenever my forms call the formclosed
or form closing
event I close the application with a this.Hide()
function; Does that affect how my application is behaving now?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…