使用多个MDI表单 [英] working with mutiple mdi forms

查看:95
本文介绍了使用多个MDI表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个c锋利的应用程序,其中包含一个子窗体查询生成器",并且每次调用时都应由多个父窗体调用此窗体.

需要建议

hello

i have a c sharp application, which contains one child form "query builder" and this form should be called by multiple parent forms whenever it called.

Need Suggestion

推荐答案

是什么问题?如果您编写的QueryBuilder表单没有任何static变量并且遵循明智的编码实践,则每个实例将是独立的,并且您可以根据需要打开任意多个实例.
What is the problem? Provided you have written your QueryBuilder form without any static variables and following sensible coding practices, then each instance will be independent, and you can open as many instances as you want.


1) Create a form in the designer
2) in your button click do the following:
-----------------------------------------------------------------------------
form2 f = new form2();
f.ShowDialog();


从查询构建器表单中获取数据的主要问题.此表单可以在多个父表单中打开.
The main problem in fetching the data from query builder form. This form could open in multiple parent forms.


这篇关于使用多个MDI表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆