privatevoidForm1_FormClosing(objectsender,FormClosingEventArgse){DialogResultre=MessageBox.Show("确定离开吗","询问",MessageBoxButtons.YesNo,MessageBoxIcon.Question);if(re==DialogResult.No){e.Cancel=true;}}privatevoidbutton1_Click(objectsender,EventArgse)...
查看全文