在win forms中,            this.AcceptButton = button2;
            this.CancelButton = button1;button2将处理enter键,窗体关闭,点击button2也是关闭窗体;但是button1处理Esc键,按下Esc窗体关闭,点击button1却不关闭!为虾米不关闭!