Form的Close,Closing,Closed事件的区别?初学C#希望高手指点.

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 09:47:42
Form的Close,Closing,Closed事件的区别?初学C#希望高手指点.Form的Close,Closing,Closed事件的区别?初学C#希望高手指点.Form的Close,Closi

Form的Close,Closing,Closed事件的区别?初学C#希望高手指点.
Form的Close,Closing,Closed事件的区别?
初学C#希望高手指点.

Form的Close,Closing,Closed事件的区别?初学C#希望高手指点.
1.close不是事件
是方法
可以使用代码来执行关闭窗体的操作

Form1.Close();
2.
Closeing是关闭前发生,当单击关闭按钮时发生,但窗体还没有关闭.
在这里面可以写代码执行一些操作,如取消关闭的操作
private void Form1_FormClosing(object sender,FormClosingEventArgs e)
{
if(条件)
e.Cancel=true;
}
3.
Closed事件是关闭后发生的事件,此时窗体已经关闭了,可以执行一些恢复,保存设置,记录状态,记录日志等操作.

Form的Close,Closing,Closed事件的区别?初学C#希望高手指点. close closing closed的区别 close closely closed closing的区别 close,closed,closely,closing的区别 closing与to close的区别 I usually forget _____ the door,but I remembered _____ it when I left yesterday.A.closing; closing B.to close; to close C.closing; to close D.to close; closing只需要了解forget和remember的用法即可吗? Would you mind ________ the door?A.my close B.my closing C.close my D.closing my Remember ____ the door when you leave.A.closing B.to closing C.close D.to close Her mother often forgets____the door .This morning,she said she remembered____it,but in fact,thedoor was still open.A.to close;closing B.closing;closing C.to close;to close D.closing;to close 急 Would you like__cartoons?A.watch B./ C.watchingTry__your eyes.A closing B to close C close ___the windows before you leave the classroom.A.To close B.Closing C.close D.Closed Do you mind my ____the window?A close B closes C to close D closing选择题, You must keep you eyes _______.A.close B.closed C.closing D.to close after 后面要加名词,但是为什么after close examination的close不用变closing. dot't forget___the door and windows when you leave .(A,closing B,to close C,closed D,to closing) Just as I -----the door ,someone came to see me.A.close B.am closing C.was closing D.closes The windows are all( ).They are not( )A.closed,open B.closing,opening C.closing,opend D.close, 关于close的初三英语题目Flu has broken out recently.please dont keep the windows A.close B.to close C.closing D.closed为什么不可以是A?