Nod top right corner shut (forked forked) , but see this order process still be in, how to shut thoroughly excuse me quit a program? The Cheng that use a line? After wanting to add what ` to add ` ability to let a dot shut which, retreated entirelyShould yes ``If saying with the line, it is good to line Cheng line Cheng ends in answering the event that the window closes. The code that after the dot is shut, moves is in which oh, be here the face adds to exit a process went? The Cheng that use a line attribute of line Cheng IsBackground is set for True
Can end along with masterstroke Cheng and end
In closing event, use: System.Diagnostics.Process.GetCurrentProcess().Kill();System.Environment.Exit(0);Using which method is to exit a line to becomePrivatevoidDefault_FormClosing(objectsender, formClosingEventArgse)
{
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
Code is written in window body to close event inGood, thankThe process is father, line Cheng is a son.
A father can have many sons.
If be shut only among them Cheng of a line is to won't close a process
That is to say a son is had possibly still by Ka Ca other son is in
Mark
2009年1月4日星期日
订阅:
博文评论 (Atom)
没有评论:
发表评论