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 995011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:39:21+00:00 2026-05-16T06:39:21+00:00

Firstly, I’ve never used threads, but have found lots of examples on the internet

  • 0

Firstly, I’ve never used threads, but have found lots of examples on the internet about their use but nothing that obviously answers my question.

I have a class that loads and manipulates a file(s). It is fairly CPU intensive so I intend to put it in its own thread so that the GUI remains responsive. However, I would also like to use a progress bar to indicate the current status of the file operations.

The question is, what is the best way of approaching this, i.e. How do I get my file class to tell the app where it’s up to? Do I have to add thread specific code to my class? Or is there an interface I can implement? Or, am I approaching this all wrong. Additionally (sorry, another stupid question) I assume I need an indicator in my file class to tell the thread when it’s finished?

I’m using VS2010 and intend to build the app with WPF (if that’s relevant)

Thanks for any advice,
Bob

  • 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-16T06:39:21+00:00Added an answer on May 16, 2026 at 6:39 am

    Since you are intending to use WPF, use a Dispatcher:

    Build More Responsive Apps With The Dispatcher

    (Otherwise, for Winforms use a BackgroundWorker)

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

Sidebar

Related Questions

Firstly, I have search Stack Overflow for the answer, but I have not found
Firstly, I do not have the option to use Regular Expressions. It pains me
Firstly, Real World Haskell , which I am reading, says to never use foldl
Firstly I have tried to re create this within a JSfiddle but unable to,
Firstly: sorry about my pathetic english language skill. Secondly: i have learnt python for
Firstly, is it safe to mix green threads such as eventlet or gevent with
Firstly sorry if this is a common question but I couldn't find anything on
Firstly, this is going to sound like homework, but it ain't. Just a problem
Firstly, I'm not using rails. This is vanilla ruby application. I've read about packaging
Firstly is it possible to use objective C to find out if the user's

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.