ARTICLE

Using the Backgroundworker with VB.Net 2005

Posted by Frank Fortino Articles | Multithreading in VB.NET May 24, 2009
A simple Windows VB.Net 2005 program that shows you how to use a Backgroundworker to run a background task
Download Files:
 
Reader Level:

I write a lot of Client side WinForm programs to analyze wireless network test results, from 100MB log files and MySQL databases.  I wanted to be able to run some background tasks that can take 10+ minutes to complete.

Using Google, I found a few programs that used the Backgroundworker (in .Net 2.0).  Although all the examples I found were overly complicated and hard to follow; so I decided to write a very simple program in VB.Net 2005 that showed how to use all the features of the Backgroundworker.

BackgroundWorker1.gif






share this article :
post comment
 

how do i manage multiple background workers

Posted by smith jack May 31, 2011

Yes. You can call it from anywhere.

Posted by Mahesh Chand Jul 31, 2010

I see that the BGW1.RunWorkerAsync()
is in a button click event can this be called from a routine sub procedure?

Posted by psabatine Mar 04, 2010
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor