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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:48:32+00:00 2026-05-28T05:48:32+00:00

I do some checks on form load, but it is locking the form for

  • 0

I do some checks on form load, but it is locking the form for a period (some thousandths of seconds). For this reason, I want to display a message such as “loading application..”, but I have no idea how I do this. I hope this clear! Any help is very appreciated. Thanks in advance.

  • 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-28T05:48:33+00:00Added an answer on May 28, 2026 at 5:48 am

    Ideally what you want to do is to perform your checks on a background thread, so that the UI thread isn’t blocked. Have a look at the BackgroundWorker class.

    You should hook your checks to the DoWork event of the background worker, and call the BackgroundWorker’s RunWorkerAsync() method from the Form_Load event to kick off the background work.

    Something like this (note, this is untested):

    BackgroundWorker bw = new BackgroundWorker();
    public void Form_Load(Object sender, EventArgs e) {
        // Show the loading label before we start working...
        loadingLabel.Show();
        bw.DoWork += (s, e) => {
           // Do your checks here
        }
        bw.RunWorkerCompleted += (s, e) => { 
           // Hide the loading label when we are done...
           this.Invoke(new Action(() => { loadingLabel.Visible = false; })); 
        };
        bw.RunWorkerAsync();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run some basic checks when my ASP.NET server goes up. Mostly
Simple question (I guess)... I'm in an edit-some-element html form. As the page load,
I have a form that has a series of check boxes and some line
Since I need to do some checks depending on which control is on focus
I have a rake task where I do some checks at the beginning, if
I have a javascript function (function1) that checks some global variables (can the user
I'm currently developing a firefox extension which checks some server side XML-File on a
I have a little Perl script (On Windows) that checks some files for me
I've got a list of names which some code checks against to see if
well the thing is i am having a scheduled script that checks some changes

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.