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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:40:56+00:00 2026-05-13T16:40:56+00:00

I am designing an application which has the potential to hang while waiting for

  • 0

I am designing an application which has the potential to hang while waiting for data from servers (either Database or internet) the problem is that I don’t know how best to cope with the multitude of different places things may take time.

I am happy to display a ‘loading’ dialog to the user while access is happening but ideally I don’t want this to flick up and disappear for short running operations.

Microsoft word appears to handle this quite nicely, as if you click a button and the operation takes a long time, after a few seconds you get a ‘working..’ dialog. The operation is still synchronous and you can’t interrupt the operation. However if the same operation happens quickly you obviously don’t get the dialog.

I am happy(ish) to devise some generic background worker thread handler and 99% of my data processing is already done in static atomic methods, but I would like to go best practice on this one if I can.

If anyone has patterns, code or suggestions I welcome them all

Cheers

  • 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-13T16:40:57+00:00Added an answer on May 13, 2026 at 4:40 pm

    Microsoft word appears to handle this quite nicely, as if you click a button and the operation takes a long time, after a few seconds you get a ‘working..’ dialog. The operation is still synchronous and you can’t interrupt the operation. However if the same operation happens quickly you obviously don’t get the dialog.

    If this is the behavior your want…

    You could handle this, fairly easily, by wrapping a class around BackgroundWorker. Just time the start of the DoWork event, and the time to the first progress report. If a certain amount of time passes, you could show your dialog – otherwise, block (since it’s a short process).

    That being said, any time you’re doing work that can be processed asynchronously, I’d recommend doing it that way. It’s much nicer to never block your UI for a noticable interval, even if it’s short. This becomes much simpler in .NET 4 (or 3.5 with Rx framework) by using the task parallel library.

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

Sidebar

Related Questions

The application that I'm designing will retrieve and store content from a variety of
We are designing a .net web application that has an external and internal site.
When designing an application, does there come a point where you have too many
I am designing an application that is going to consist of 3-4 services that
I am re-designing an application for a ASP.NET CMS that I really don't like.
I'm designing an application that supports plugin development. Its more of a learning exercise.
We are working on designing an application that is typically OLTP (think: purchasing system).
We are designing a survey application with the following features The users will be
When designing a ASP.net WebForm application what are some important steps to take (or
When designing a user interface for an application that is going to be used

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.