ross13
asked on
VB. Net app- UI threads/ background process help
Hi,
I was wondering if someone can help. I am creating an application and require a database extract to be done for the user as well as a status bar to move to inform the user of the progress made. The problem is that the screen locks up when this is started and the user is unable to do anything else. I have had a look at possibly using threads as well as something called background process which seems like this could work. The only problem is if i create a thread etc i need to pass a count between this and the user interface. Can someone recommend the best way to keep these in sync.
Thanks
Ross
I was wondering if someone can help. I am creating an application and require a database extract to be done for the user as well as a status bar to move to inform the user of the progress made. The problem is that the screen locks up when this is started and the user is unable to do anything else. I have had a look at possibly using threads as well as something called background process which seems like this could work. The only problem is if i create a thread etc i need to pass a count between this and the user interface. Can someone recommend the best way to keep these in sync.
Thanks
Ross
You can use BackgroundWorker and report progress. Here's the MSDN sample. http://msdn.microsoft.com/en-us/library/ka89zff4.aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Wow... that's a much more description answer than mine. Well done Bob!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.