INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Backgroundworker VS2008 VB - Can't get started

Backgroundworker VS2008 VB - Can't get started

(OP)
Hello,

I am trying to learn about using the Backgroundworker to get a ProgressBar working.
But I can't seem to get this development effort off-the-ground.

I am using VS2008 (VB).
When I create a New Project - Web ASP.Net Application and look for the Backgroundworker object in the Toolbox, it is Greyed-out.

I have tried various things found on a web search and none of them will Enable the Backgroundworker control so that I can place it onto my Default.aspx form.

What am I doing wrong?

Any advice/suggestions you might be able to offer would be greatly appreciated.

(Note - since I am not sure which forum area might be best for this question, I will be duplicating it on the VB.Net area as well. My apologies for the duplication)

Thanks,
JRB-Bldr

RE: Backgroundworker VS2008 VB - Can't get started

Are you sure you created a web project or website?
I don't see that object in my toolbox. All background worker process is done in code from all examples I have seen.

that object does exist in windows forms projects

RE: Backgroundworker VS2008 VB - Can't get started

(OP)
Yes, within VS2008 (VB) I created a new ASP.Net Web Application project for the purpose of testing this.

In order to get the Backgroundworker object to appear at all (even though it was Greyed-Out) I had to right click in the middle of the Toolbox (not the title bar) and click on Show All.

The Toolbox Default does not include many categories.
Once I did the Show All, the Containers tab appeared wherein the Backgroundworker showed as Greyed-Out.
And numerous other web references found on Backgroundworker talked about merely dragging this control onto the form and then showed code to make it work.
From that I had hoped to find an 'easy' solution. But NOT SO FAST....

Apparently, based on other references I found, the Backgroundworker is not intended to work in ASP.Net.
I say that only due to the following replies to my question from another forum (not based on personal knowledge)
The Backgroundworker control is winforms only http://www.hanselman.com/blog/HowToRunBackgroundTa...
BackgroundWorker is not a control, and it is not winforms only. But no, it can't work client-side in asp.net page

If someone knows differently and/or better, I'd appreciate their enlightening me.

Good Luck,
JRB-Bldr

RE: Backgroundworker VS2008 VB - Can't get started

Hi JRB-Bldr,

I am currently working on a rather large and complex web application (MVC architecture) with some heavy server-side operations.
I have learned to love using hangfire for this:
http://hangfire.io/

I suggest you give it a try.

Good luck,
MakeItSo

ôKnowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family.ö (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.

RE: Backgroundworker VS2008 VB - Can't get started

(OP)
Thanks for the reply.

I will be looking into Hangfire, but apparently is is for VS2010+ and not for VS2008.

The project I am working on is in VS2008 so that might not be a solution for this situation.
Regardless, I will look into more thoroughly.

Thanks
JRB-Bldr

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close