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.
Share
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):