运行的每个子窗体作为一个MDI容器一个单独的线程 [英] Running each child form as a separate thread in a MDI container

查看:205
本文介绍了运行的每个子窗体作为一个MDI容器一个单独的线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在一个单独的线程运行MDI表单的每个子窗体?如果是这样,你能不能请给一些代码和例子,如何设置呢?

Is it possible to run each child form of a MDI form on a separate thread? If so, can you please give some codes and example how to setup this?

谢谢!

推荐答案

我无法从这个问题告诉阉你都知道你提出的解决方案的异国情调性质。我道歉,如果这个答案完全忽略了商标。

I can't tell from the question wether you are aware of the exotic nature of the solution you are proposing. I apologize if this answer completely misses the mark.

我假设你想要的响应的应用程序中。那你不希望其他形式的挂起,而一种形式在做的工作。

I assume that you want responsiveness in your application. That you don't want other forms to "hang" while one form is doing work.

然而,有每个表单不同的GUI线程的如何人们通常实现这一目的。我不知道,如果它甚至有可能。

However, having a different GUI thread per form is not how one usually achieves this. I don't know if it is even possible.

您仍然有只有一个线程处理所有的图形(又名GUI线程),但所有费时工作应立即卸载到另一个线程(又名工作者线程)。这样的应用程序仍然可以做出响应。

You will still have only one thread handling all the graphics (aka "the GUI Thread"), but all time consuming work should be immediately offloaded to another thread (aka worker thread). That way the app remains responsive.

我建议你看看这部影片。 ,适用与否,4-6分钟之内,你应该知道阉这是你正在寻找的答案

I suggest you check out this video. Applicable or not, within 4-6 minutes, you should know wether this is the answer you are looking for.

DNRTV情节以斯蒂芬Toub

另一种可能是,你是询问如何没有它模式显示表单。

Another possibility is that you are asking about how to display a form without it being modal.

这篇关于运行的每个子窗体作为一个MDI容器一个单独的线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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