如何关闭MDI形式的子表格 [英] how to close child forms in mdi form
本文介绍了如何关闭MDI形式的子表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用带有25个子窗体的MDI窗体,
要求:表格名称1,2,3,4,5,6,7,8,9 ......
1.表格1已打开.
2.如果用户单击表格2来打开.
3.我们需要请用户关闭表格1吗?如果没问题(表格1将关闭,表格2将打开)
Hi all,
I am working with MDI form with 25 Child forms,
Requirement: form name 1,2,3,4,5,6,7,8,9......
1. Form 1 has open.
2. If user clicked on form 2 to open.
3. We need to ask user to close form 1 are not ? If ok (form 1 will closed and form 2 will open)
推荐答案
那是什么问题?
就像您打开子窗体的方式一样,您也会找到inbuild方法来关闭窗体.
So what is the problem?
Like how you r opening child form, likewise you will find inbuild method to close form.
看看那个
使用C#引入MDI表单 [
Have a look on that
Introduction to MDI Forms with C#[^]
manoharnch,
您可以使用
在MDI表单中打开活动的子窗口.
hi manoharnch,
you can get the active child window opened in your MDI form using
this.ActiveMdiChild
这篇关于如何关闭MDI形式的子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文