Link to home
Start Free TrialLog in
Avatar of ross13
ross13Flag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of Jeff Certain
Jeff Certain
Flag of United States of America image

You can use BackgroundWorker and report progress. Here's the MSDN sample. http://msdn.microsoft.com/en-us/library/ka89zff4.aspx
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Wow... that's a much more description answer than mine. Well done Bob!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial