Form1 f = new Form1();f.Show();f.formClosing ... <- I just want to run code from this context once this form has been closed解决方法
{ Form1 f = new Form1(); f.FormClosed += new FormClosedEventHandler(f_FormClosed); f.Show();}voID f_FormClosed(object sender,FormClosedEventArgs e){ // Do stuff here}总结
以上是内存溢出为你收集整理的c# – 在代码中添加表单关闭事件到特定对象实例?全部内容,希望文章能够帮你解决c# – 在代码中添加表单关闭事件到特定对象实例?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)