VB.Net(Windows应用程序)具有多线程的选项卡控件 [英] VB.Net (Windows Application) Tab Control With Multi Threading

查看:257
本文介绍了VB.Net(Windows应用程序)具有多线程的选项卡控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人请给我打电话.是否可以在Windows应用程序中使用多线程概念开发选项卡控件.我被创建了4个标签页.是否可以同时访问4个标签页以执行操作....?

解决方案

由于您一次只能看到一个标签,因此点?

您无法访问单独线程上的选项卡页.选项卡控件用于组织和显示包含相关数据的控件,仅此而已.

是的,您可以有多个运行多个代码的线程,是的,如果您在UI线程上调用函数以使用适当的数据更新控件,则这些线程可以更新其相应的控件.


<我认为您应该对线程和Form.InvokeRequired()有所了解.这是一个很好的例子,并附有解释.遇到问题时,您将可以自行解决.干杯!

Form.InvokeRequired()示例和说明


Any one please tel me. Is there possible to develop tab control with multithreading concept in windows application. I was created 4 tab pages. Is it possible to access 4 tab pages simultaneously to perform action....?

解决方案

Since you can only see one tab at a time, what''s the point??

You don''t access the tab pages on seperate threads. Tab controls are for oragnizing and display controls containing related data, nothing more.

Yes, you can have multiple threads running various pieces of code, and yes, those threads can update their corresponding controls, if you Invoke functions on the UI thread to update the controls with the appropriate data.


I think you have a little reading to do about threading and Form.InvokeRequired(). Here''s a good example, with explanation. When you have this down, you''ll be able to solve this on your own. Cheers!

Form.InvokeRequired() example and explanation


这篇关于VB.Net(Windows应用程序)具有多线程的选项卡控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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