MDI儿童和DLL [英] MDI Children and DLLs

查看:68
本文介绍了MDI儿童和DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个带有多个MDI子窗体的VB.NET MDI应用程序。每个

MDI子表单都有大量代码。我想我想要b
为每个子表单创建一个DLL,这样如果我需要对特定表单进行更改

,我可以更新该表单的DLL并且只有新的DLL下载

用户。


从MDI父级的主菜单中,用户选择一个特定的任务,

通常涉及处理来自特定类型的

文件的信息。用户使用OpenFileDialog选择文件。然后我做了一些

检查以确保文件是所选特定

任务的正确文件类型。如果是,我打开MDI Child表单并将文件名和

一些其他信息传递给表单。


从这一点开始,所有处理都完成了来自Child表单。


那么,是否可以将整个表单放入DLL中?或者我可以只需要表格功能(各种子功能)并将它们移动到一个DLL上吗?


Lee

Hi All,

I have a VB.NET MDI application with several MDI Child forms. Each of the
MDI Child forms has a significant amount of code. What I think I would like
to do is create a DLL for each child form, so that if I need to make changes
to a particular form, I can just update the DLL for that form and have the
user download just the new DLL.

From the main menu of the MDI parent, a user selects a particular task,
which generally involves processing information from a particular type of
file. The user selects the file using an OpenFileDialog. then I do a bit of
checking to make sure the file is the right type of file for the particular
task selected. If it is, I open the MDI Child form and pass the filename and
some other information to the form.

From this point, all processing is done from the Child form.

So, is it possible to take the entire form and put it in a DLL? Or can I
only take the form functionality (various subs and functions) and move them
to a DLL?

TIA
Lee

推荐答案




Billy Hollis做了一个关于这是在orlando dot net用户组

会议。这是他写的示例代码的链接。

http://www.dotnetmasters.com/Downloa...msOnTheFly.zip


Ken

------- -------

" lgbjr" < LG *** @ nospam.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
Hi,

Billy Hollis did a talk about this at a orlando dot net user group
meeting. Here is a link to the sample code he wrote.

http://www.dotnetmasters.com/Downloa...msOnTheFly.zip

Ken
--------------
"lgbjr" <lg***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
大家好,

我有一个带有几个MDI子窗体的VB.NET MDI应用程序。每个
MDI子表单都有大量代码。我认为我想做的就是为每个子窗体创建一个DLL,这样如果我需要对特定窗体进行更改,我可以更新该窗体的DLL并且
让用户只下载新的DLL。

从MDI父级的主菜单中,用户选择一个特定的任务,
通常涉及处理特定类型的
文件。用户使用OpenFileDialog选择文件。然后我做了一些检查以确保文件是所选
特定任务的正确文件类型。如果是,我打开MDI Child表单并将
文件名和其他一些信息传递给表单。

从这一点开始,所有处理都是从子表单完成的。

那么,是否可以将整个表单放入DLL中?或者我可以只使用表单功能(各种子功能)并将它们移动到DLL中吗?

TIA
Lee
Hi All,

I have a VB.NET MDI application with several MDI Child forms. Each of the
MDI Child forms has a significant amount of code. What I think I would
like to do is create a DLL for each child form, so that if I need to make
changes to a particular form, I can just update the DLL for that form and
have the user download just the new DLL.

From the main menu of the MDI parent, a user selects a particular task,
which generally involves processing information from a particular type of
file. The user selects the file using an OpenFileDialog. then I do a bit
of checking to make sure the file is the right type of file for the
particular task selected. If it is, I open the MDI Child form and pass the
filename and some other information to the form.

From this point, all processing is done from the Child form.

So, is it possible to take the entire form and put it in a DLL? Or can I
only take the form functionality (various subs and functions) and move
them to a DLL?

TIA
Lee


嗨肯,


感谢您的回复。并感谢链接。我看到他正在做什么和它

看起来相当容易实现。


但是有一个问题。我没有看到将信息从MDI

父级传递到动态加载表单的方法。我有一种感觉这是一件微不足道的事情,但我不知道怎么做。


问候,

Lee


" Ken Tucker [MVP]" < VB *** @ bellsouth.net>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
Hi Ken,

thanks for the reply. And thanks for the link. I see what he''s doing and it
looks fairly easy to implement.

One question though. I don''t see a way to pass information from the MDI
parent to the dynamically loaded form. I have a feeling this is a trivial
matter, but I''m not sure how to do it.

Regards,
Lee

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


Billy Hollis在orlando dot net用户组
会议上就此进行了讨论。这是他写的示例代码的链接。

http://www.dotnetmasters.com/Downloa...msOnTheFly.zip


--------------
" lgbjr" < LG *** @ nospam.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
Hi,

Billy Hollis did a talk about this at a orlando dot net user group
meeting. Here is a link to the sample code he wrote.

http://www.dotnetmasters.com/Downloa...msOnTheFly.zip

Ken
--------------
"lgbjr" <lg***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
大家好,
我有一个带有几个MDI Child表单的VB.NET MDI应用程序。每个
MDI子表单都有大量代码。我认为我想做的就是为每个子窗体创建一个DLL,这样如果我需要对特定窗体进行更改,我可以更新该窗体的DLL并且
让用户只下载新的DLL。

从MDI父级的主菜单中,用户选择一个特定的任务,
通常涉及处理特定类型的
文件。用户使用OpenFileDialog选择文件。然后我做了一些检查以确保文件是所选
特定任务的正确文件类型。如果是,我打开MDI Child表单并将文件名和其他一些信息传递给表单。

从这一点开始,所有处理都是从子表单完成的。

那么,是否可以将整个表单放入DLL中?或者我可以只使用表单功能(各种子功能)并将它们移动到DLL中吗?

TIA
Lee
Hi All,

I have a VB.NET MDI application with several MDI Child forms. Each of the
MDI Child forms has a significant amount of code. What I think I would
like to do is create a DLL for each child form, so that if I need to make
changes to a particular form, I can just update the DLL for that form and
have the user download just the new DLL.

From the main menu of the MDI parent, a user selects a particular task,
which generally involves processing information from a particular type of
file. The user selects the file using an OpenFileDialog. then I do a bit
of checking to make sure the file is the right type of file for the
particular task selected. If it is, I open the MDI Child form and pass
the filename and some other information to the form.

From this point, all processing is done from the Child form.

So, is it possible to take the entire form and put it in a DLL? Or can I
only take the form functionality (various subs and functions) and move
them to a DLL?

TIA
Lee



大家好,


更具体地说明我以前的帖子:


目前,在我的MDI父表单中,我有一个公共类,其公共共享

变量传递给MDI子表单。


更改子窗体动态加载(ChildForm.dll),我不能

弄清楚如何将公共共享变量传递给窗体时它是什么

已加载。


我可以将公共类中的公共共享变量暴露在MDI

父表单中的子表单中吗?或者,我如何将公共共享

变量传递给dll?


TIA

Lee


" Ken Tucker [MVP]" < VB *** @ bellsouth.net>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
Hi All,

To be more specific about my previous post:

Currently, in my MDI Parent Form, I have a public class with public shared
variables that are passed to the MDI child forms.

changing the Child forms to be dynamically loaded (ChildForm.dll), I can''t
figure out how to pass the public shared variables to the form when it''s
loaded.

Can I expose the public class with my public shared variables in the MDI
parent form to the childform.dll? Or, how do I pass the public shared
variables to the dll?

TIA
Lee

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...


Billy Hollis在orlando dot net用户组
会议上就此进行了讨论。这是他写的示例代码的链接。

http://www.dotnetmasters.com/Downloa...msOnTheFly.zip


--------------
" lgbjr" < LG *** @ nospam.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
Hi,

Billy Hollis did a talk about this at a orlando dot net user group
meeting. Here is a link to the sample code he wrote.

http://www.dotnetmasters.com/Downloa...msOnTheFly.zip

Ken
--------------
"lgbjr" <lg***@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
大家好,
我有一个带有几个MDI Child表单的VB.NET MDI应用程序。每个
MDI子表单都有大量代码。我认为我想做的就是为每个子窗体创建一个DLL,这样如果我需要对特定窗体进行更改,我可以更新该窗体的DLL并且
让用户只下载新的DLL。

从MDI父级的主菜单中,用户选择一个特定的任务,
通常涉及处理特定类型的
文件。用户使用OpenFileDialog选择文件。然后我做了一些检查以确保文件是所选
特定任务的正确文件类型。如果是,我打开MDI Child表单并将文件名和其他一些信息传递给表单。

从这一点开始,所有处理都是从子表单完成的。

那么,是否可以将整个表单放入DLL中?或者我可以只使用表单功能(各种子功能)并将它们移动到DLL中吗?

TIA
Lee
Hi All,

I have a VB.NET MDI application with several MDI Child forms. Each of the
MDI Child forms has a significant amount of code. What I think I would
like to do is create a DLL for each child form, so that if I need to make
changes to a particular form, I can just update the DLL for that form and
have the user download just the new DLL.

From the main menu of the MDI parent, a user selects a particular task,
which generally involves processing information from a particular type of
file. The user selects the file using an OpenFileDialog. then I do a bit
of checking to make sure the file is the right type of file for the
particular task selected. If it is, I open the MDI Child form and pass
the filename and some other information to the form.

From this point, all processing is done from the Child form.

So, is it possible to take the entire form and put it in a DLL? Or can I
only take the form functionality (various subs and functions) and move
them to a DLL?

TIA
Lee



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

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