Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello people, I have a program where I can upload excels, sometimes when the user upload a file, it takes many minutes, and he keeps waiting until the file is ready.
I want to show a message to the user that is gonna take some time until the file is ready, but i want to continue the process of reading the file while the message is showed, without diong a postback or breaking interrupting the code.
What process i could use to do it?

What I have tried:

I dont know what to try, i'm searching for advices
Posted
Updated 9-Mar-22 22:05pm

1 solution

Use a BackgroundWorker Class (System.ComponentModel) | Microsoft Docs[^] to do the upload so your main thread can show a message or a progress bar.
 
Share this answer
 
Comments
Maciej Los 10-Mar-22 6:35am    
5ed!
igor miyada 10-Mar-22 6:56am    
Thanks Richard, i'll try use this here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900