Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6338673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:29:33+00:00 2026-05-24T19:29:33+00:00

I need a few threads working simultaneously with URL requests in a VB.NET 2010

  • 0

I need a few threads working simultaneously with URL requests in a VB.NET 2010 app. Once one of them finishes, it should continue with the next task in a list.

I’m new to using threads. Since it seems like I can’t declare an array of BackgroundWorker, I thought I’d have a control class that creates an instance of a task class for each task, which in turn starts a BackgroundWorker in its constructor.
However, with this approach I’m not sure how to report the result back to the control class upon completion. I had this vague idea that I could send a reference to an object in the control class (or to a public event I can trigger, is this possible?), but then I have to somehow store this address until the work is done. And I don’t know how I can store the address from a ByRef for future use.

What I would basically like to know is: What is the standard pattern for accomplishing this, how should I think, can anyone point to an example?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:29:34+00:00Added an answer on May 24, 2026 at 7:29 pm

    Since it seems like I can’t declare an array of BackgroundWorker

    You can. And in you case, it looks like you absolutely should, since the BackgroundWorker offers exactly the functionality you need.

    Just declare the worker in code, rather than via the Forms Designer: The Forms Designer doesn’t support arrays of controls/components. But in code, no such restriction exists. The only problem is that you cannot declare lists/arrays/… as WithEvents. You need to register and deregister event handlers manually on all instances, using AddHandler and RemoveHandler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to do a few very simple URL manipulations in Java. Like get
I need to deploy a few .net dlls. They need to be put in
I'm creating a user-based website. For each user, I'll need a few MySQL tables
How do you store file permissions in a repository? A few files need to
I need to deploy a few files that were checked in sometime ago (can't
I need to read smallish (few MB at the most, UTF-8 encoded) XML files,
I need to wrap a few strings in single quotes for a dynamic TSQL
I have a few models that need to have custom find conditions placed on
I have few asynchronous tasks running and I need to wait until at least
I have a few batch files I need to run frequently in developing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.