VB.Net Windows窗体应用程序中的线程OR BackgroundWorker [英] Threading OR BackgroundWorker in VB.Net Windows Form Application

查看:283
本文介绍了VB.Net Windows窗体应用程序中的线程OR BackgroundWorker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows窗体application-VB.Net,上面有一个按钮-调用该程序生成报告.生成报告需要2-3分钟.但是,当我最小化表单时,直到报表生成过程完成后,我才能打开.

我知道在这里我需要使用Threading或Background Worker ...!因此,请帮助我如何在VB.net Windows窗体应用程序中使用它们.

I have a windows forms application-VB.Net on which I have given one button - which call the procedure to generate report. Generating report will required 2-3 min. But when I minimize the form I am not able to open until report generation procedure is finish.

I know that here I need to use Threading Or Background Worker...! So please help me how do I use these in VB.net Windows Form Application

推荐答案



阅读此代码项目文章
Hi,

Read this code project article


已阅读以下内容

Backgroundworker线程示例 [ CP:线程简介 [
Have a read of these

Backgroundworker thread example[^]

CP: Introduction to threading[^]

Personally I prefer to use Backgroundworker on a form as I am able easily to update the progress of the backgroundworker to the UI.


这篇关于VB.Net Windows窗体应用程序中的线程OR BackgroundWorker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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