public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
//关闭之前要执行的代码
}
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
//关闭之后要执行的代码
}
} |