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

  • SEARCH
  • Home
  • 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 7652799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:51:44+00:00 2026-05-31T11:51:44+00:00

I have a backgroundWorker thread running. At the end I update the UI, minimize

  • 0

I have a backgroundWorker thread running. At the end I update the UI, minimize the app & change the icon.

I tried to minimize the app in middle, but then the UI wasn’t updated, nor the icon was changed. Thread was executed but this part wasn’t done.

Can’t the UI get updated when the app is minimized ? If can, where I may be going wrong.

UPDATED :

@Daniel, YesI am aware of it. And when the task is done I call ProgressChanged is called and finally RunWorkerCompleted is also called. BUT when I minimize the app in middle, the components like Label’s aren’t changed. Button text is changed, but it hangs/stucks – button doesn’t work any longer. MY point is : If app is minimized during executing DoWork, then when ProgresChanged & RunCompleted is called or not. If called then why certain components aren’t changed. NOTE: If I don’t minimize in middle, then everything works perfectly fine.

  • 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-31T11:51:45+00:00Added an answer on May 31, 2026 at 11:51 am

    You can only update the UI from the UI thread. The ProgressChanged and RunWorkerCompleted events are run on the UI thread, the DoWork event is not. This means, if you want to update your UI from a BackgroundWorker while it is running, you need to do it in the ProgressChanged event handler.

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

Sidebar

Related Questions

I have a long running series of operations in a .NET 2.0 BackgroundWorker thread.
I have a small WinForms app that utilizes a BackgroundWorker object to perform a
I have a longer running multi-step process using BackgroundWorker and C#. I need to
I have some code which is been running by a backgroundworker I'd like some
I have a C# class, MyCommand, that is run using a backgroundWorker and thread
I have the same BackgroundWorker code piece in two simultaneously running applications. Will this
I have a BackgroundWorker thread that is posting messages, using BeginInvoke on a textbox
I'm using System.ComponentModel.BackgroundWorker to execute some longer running task that - in the end
All, I have used the Thread and BackgroundWorker classes with success to facilitate a
Hi all i have a background worker thread and some unmanaged code dlls ,

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.