日期:2014-05-18  浏览次数:20819 次

速度,急救!!!!!!!!!!!!!!!!!!!!!!!!
C#中窗体关闭的事件是哪一个??????

------解决方案--------------------
formclosing 或 formclosed
------解决方案--------------------
FormClosed()
FormClosing()
还有窗体自动建立的Dispose()(在Form.Design.cs文件中)

------解决方案--------------------
C# code
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
        {

        }

        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {

        }

------解决方案--------------------
FormClosed()和FormClosing() !!