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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:19:08+00:00 2026-06-05T00:19:08+00:00

I have what would appear to be a simple problem but I am not

  • 0

I have what would appear to be a simple problem but I am not sure how to solve it.

What I want to do is perform a lengthy operation that is called from the UI thread on a worker thread so that the UI remains responsive – however this still has to be sequential, I want to wait for the action to complete but still pump the message queue so the UI doesn’t get the dreaded (Not Responding…) error.

How is it possible in an elegant fashion, the ugly and diabolical way would be to spawn a thread and enter a DoEvents loop until its done.

  • 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-06-05T00:19:10+00:00Added an answer on June 5, 2026 at 12:19 am

    What you are asking for is contradictory. You want the UI to execute (be responsive) but you don’t want it to execute your code (wait for the action do complete).

    You could either show a modal visual element that prevents the user from interacting with your main interface or you can disable all the visual elements (and navigation if relevent) whilst your background task completes.

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

Sidebar

Related Questions

I would have thought that this would be an easy thing to do, but
I am sure this would have been asked before but couldn't find it. Is
I suppose similar problem would have been discussed here, but I couldn't find it.
What I want to do is pretty simple. I would like to have sync
This question is quite simple but I'm not sure of the terms involved to
I have a problem with the SLMATH library . Not sure if anyone uses
I'm trying to do something that I thought was simple but doesn't appear to
I have images in divs and I would like to have paragraphs to appear
Normally I would have one junit test that shows up in my integration server
Basically each entity would have a collection of feeding behaviors that it would follow.

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.