Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my project. I execute package with programmatically.
(pkg = app.LoadPackage(pkgLocation, Nothing))
I have a problem so I want show the progress bar to user when the package execute by use backgroundworker

help me please
Posted

Well, you need to start your background worker, fire off a progress event at appropriate intervals. In the event handler, update the progress bar (you will need to use Invoke to update the UI).
 
Share this answer
 
Comments
DaveyM69 23-May-10 14:45pm    
If using BackgroundWorker.ProgressChanged event it will already be on the UI thread so no need to Invoke ;-)
ziegheart 23-May-10 15:12pm    
you can show me the exam

ps.I'm newbie programmer and weekly in english
I've just posted this Tip/Trick[^]. It's in C# but the principle is the same so easy to convert to VB
 
Share this answer
 
you can show me the exam

ps.I'm newbie programmer and weekly in english
 
Share this answer
 
Comments
DaveyM69 23-May-10 14:43pm    
Please use the Add Comment link below a post to reply to the poster.

John has given you the procedure - coding it is up to you. It's very easy. Have a go and if you get stuck, post the relevant code you have and any errors/exceptions you are getting and we will be glad to help.

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